diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..ac8edbd --- /dev/null +++ b/.Xresources @@ -0,0 +1,41 @@ +xterm*Background:black +xterm*Foreground:white +xterm*cursorColor:green +!xterm*pointerShape:arrow +!xterm*pointerColor:blue +xterm*VT100.geometry:80x32 +xterm*faceName:Terminus:style=Regular:size=9 +!xterm*font:-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-* +!xterm*faceName:Inconsolata:style=Regular:size=11 +!xterm*font:-*-dina-medium-r-*-*-16-*-*-*-*-*-*-* +!xterm*renderFont:false +xterm*dynamicColors:true +xterm*utf8:2 +xterm*eightBitInput:true +xterm*saveLines:4096 +xterm*scrollKey:true +xterm*scrollTtyOutput:false +xterm*scrollBar:true +xterm*rightScrollBar:true +xterm*jumpScroll:true +xterm*multiScroll:true +xterm*toolBar:false +xterm*locale:true +xterm*termName:xterm-256color +xterm*metaSendsEscape:true + +urxvt*font:-xos4-terminus-*-*-*-*-12-*-*-*-*-*-*-* +!urxvt*depth: 32 +!urxvt*background: rgba:0000/0000/0200/c800 +!urxvt*transparent: false + +!URxvt.depth: 32 +!URxvt.background: [95]#000000 +!!urxvt*shading: 60 + +URxvt*inheritPixmap: true +1URxvt*transparent: true +! URxvt*shading: 0 to 99 darkens, 101 to 200 lightens +URxvt*shading: 20 + +urxvt*saveLines:8192 diff --git a/.config/i3/config b/.config/i3/config new file mode 100644 index 0000000..7355f0d --- /dev/null +++ b/.config/i3/config @@ -0,0 +1,184 @@ +# i3 config file (v4) + +set $mod Mod4 +set $TERMINAL urxvt + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:Jetbrains Mono 10 +# font pango:Terminus 10 +# font Terminus +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec "$TERMINAL &" +bindsym $mod+Shift+Return exec "$TERMINAL --role=floating &" + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id rofi -show drun +bindsym $mod+i exec --no-startup-id rofi -show window + +# move focused window +bindsym $mod+j move left +bindsym $mod+k move down +bindsym $mod+l move up +bindsym $mod+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left move left +bindsym $mod+Down move down +bindsym $mod+Up move up +bindsym $mod+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3 and end your X session?' -b 'Yes' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + bindsym Shift+j resize shrink width 1 px or 1 ppt + bindsym Shift+k resize grow height 1 px or 1 ppt + bindsym Shift+l resize shrink height 1 px or 1 ppt + bindsym Shift+semicolon resize grow width 1 px or 1 ppt + + bindsym Shift+Left resize shrink width 1 px or 1 ppt + bindsym Shift+Down resize grow height 1 px or 1 ppt + bindsym Shift+Up resize shrink height 1 px or 1 ppt + bindsym Shift+Right resize grow width 1 px or 1 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# custom shit + +# startup +exec_always --no-startup-id $HOME/.config/polybar/launch.sh +#exec_always --no-startup-id /$HOME/.config/polybar/i3wmthemer_bar_launch.sh + +exec --no-startup-id i3-msg 'exec $TERMINAL; workspace 2; exec firefox;' +exec --no-startup-id feh --bg-scale ~/Wallpapers/seneca.jpg +exec --no-startup-id xrandr --output HDMI1 --right-of eDP1 + +exec telegram-desktop +# exec cantata + +exec --no-startup-id sleep 4; i3-msg '[class="Mattermost"] move scratchpad; [class="Telegram"] move scratchpad' + +# gaps +gaps inner 10 + +# settings +hide_edge_borders both +for_window [class="^.*"] title_format "%title [%class]" +for_window [class="^.*"] border pixel 0 +for_window [class="Telegram"] gaps outer 0 +for_window [class="Mattermost"] gaps outer 0 +for_window [window_role="floating"] floating enable +for_window [class="QSyncthingTray"] floating enable +for_window [class="Thunderbird" window_type="normal"] floating enable, resize set 1024 768 +for_window [class="Gnome-calculator"] floating enable +for_window [class="Blueberry.py"] floating enable +for_window [class="Pavucontrol"] floating enable + +# keybinds +bindsym Mod1+Tab workspace back_and_forth +bindsym $mod+Tab focus right +bindsym $mod+Ctrl+Tab focus left +bindsym Print exec "~/bin/screenshot.sh" +bindsym $mod+Print exec "owo -s --fullscreen --no-cursor" + +bindsym $mod+minus [class="Telegram"] scratchpad show +bindsym $mod+p [class="Mattermost"] scratchpad show + +# audio binds +bindsym XF86AudioMicMute exec --no-startup-id pulseaudio-ctl mute-input + +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo +10% && pactl set-sink-mute 1 0 +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo -10% && pactl set-sink-mute 1 0 +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo toggle + +# backlight binds +bindsym XF86MonBrightnessDown exec --no-startup-id ~/bin/brightness.sh down +bindsym XF86MonBrightnessUp exec --no-startup-id ~/bin/brightness.sh up + diff --git a/.config/polybar/backup/config b/.config/polybar/backup/config new file mode 100644 index 0000000..bbed047 --- /dev/null +++ b/.config/polybar/backup/config @@ -0,0 +1,314 @@ +[colors] +background = #aa222222 +#background-alt = #aa444444 +foreground = #dfdfdf +foreground-alt = #555555 +primary = #7596ff +secondary = #e60053 +alert = #bd2c40 + +[settings] +screenchange-reload = false +format-background = ${colors.background} +format-foreground = ${colors.foreground} + +[bar/mybar] +monitor = +fixed-center = true +width = 100% + +background = ${colors.background} +foreground = ${colors.foreground} + +height = 35 +line-size = 1 + +padding = 2.5 +module-margin = 2.5 + +font-0 = IBM Plex Sans Bold:size=8;0 +font-1 = FontAwesome5Free:style=Solid:pixelsize=8;0 +font-2 = FontAwesome5Brands:style=Solid:pixelsize=8;0 + +modules-left = i3 bspwm xwindow +modules-center = date +modules-right = my-apps backlight updates-arch-combined mpd pulseaudio wlan filesystem memory cpu battery temperature + +tray-position = right +tray-padding = 0 + +cursor-click = pointer + + +[module/my-apps] +type = custom/menu + +; If true, will be to the left of the menu items (default). +; If false, it will be on the right of all the items. +expand-right = false + +; "menu-LEVEL-N" has the same properties as "label-NAME" with +; the additional "exec" property +; +; Available exec commands: +; menu-open-LEVEL +; menu-close +; Other commands will be executed using "/usr/bin/env sh -c $COMMAND" + +menu-0-0 = Browsers +menu-0-0-exec = menu-open-1 + +menu-1-0 = Firefox +menu-1-0-exec = firefox & +menu-1-1 = Chromium +menu-1-1-exec = chromium & + + +[module/i3] +type = internal/i3 +format = +wrapping-scroll = false + +label-mode-padding = 2 +label-mode-foreground = #000 +label-mode-background = ${colors.primary} + +; focused = Active workspace on focused monitor +label-focused = %icon% +label-focused-background = ${colors.background-alt} +label-focused-overline = ${colors.primary} +label-focused-padding = 2 + +; unfocused = Inactive workspace on any monitor +label-unfocused = %icon% +label-unfocused-padding = 2 + +; visible = Active workspace on unfocused monitor +label-visible = %icon% +label-visible-background = ${self.label-focused-background} +label-visible-overline = ${self.label-focused-overline} +label-visible-padding = ${self.label-focused-padding} + +; urgent = Workspace with urgency hint set +label-urgent = %icon% +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +ws-icon-0 = 1; +ws-icon-1 = 2; +ws-icon-2 = 3; +ws-icon-3 = 4;4 +ws-icon-4 = 5;5 +ws-icon-5 = 6;6 +ws-icon-6 = 7;7 +ws-icon-7 = 8;8 +ws-icon-8 = 9;9 +ws-icon-9 = 10;10 + +[module/bspwm] +type = internal/bspwm +format = +wrapping-scroll = false +fuzzy-match = true + +ws-icon-0 = term; +ws-icon-1 = web; +ws-icon-2 = chat; +ws-icon-3 = irc; + +label-mode-padding = 2 +label-mode-foreground = #000 +label-mode-background = ${colors.primary} + +; focused = Active workspace on focused monitor +label-focused = %index% +label-focused-background = ${colors.background-alt} +label-focused-overline = ${colors.primary} +label-focused-padding = 2 + +; unfocused = Inactive workspace on any monitor +label-unfocused = %index% +label-unfocused-padding = 2 + +; visible = Active workspace on unfocused monitor +label-visible = %index% +label-visible-background = ${self.label-focused-background} +label-visible-overline = ${self.label-focused-overline} +label-visible-padding = ${self.label-focused-padding} + +; urgent = Workspace with urgency hint set +label-urgent = %index% +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +[module/xwindow] +type = internal/xwindow +label = %title% +label-maxlen = 100 + +[module/filesystem] +type = internal/fs +mount-0 = / +interval = 30 + +label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% +label-unmounted-foreground = ${colors.foreground-alt} + +[module/memory] +type = internal/memory +interval = 1 + +format-prefix = " " +format-prefix-foreground = ${colors.foreground-alt} + +label = "RAM: %percentage_used%%" + +[module/backlight] +type = internal/xbacklight + +; XRandR output to get get values from +; Default: the monitor defined for the running bar +output = eDP1 + +; Create scroll handlers used to set the backlight value +; Default: true +enable-scroll = false + +[module/cpu] +type = internal/cpu +interval = 2 + +format-prefix = " " +format-prefix-foreground = ${colors.foreground-alt} + +label = "CPU:%percentage:2%%" + +[module/mpd] +type = internal/mpd +format-online = + +icon-prev =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  + +label-song-maxlen = 100 +label-song-ellipsis = true + + +[module/wlan] +type = internal/network +interface = wlp2s0 +interval = 3.0 + +format-prefix = " " +format-connected = +label-connected = "%signal%% %essid%" + +format-disconnected = +;format-disconnected = +;format-disconnected-overline = ${self.format-connected-overline} +;label-disconnected = %ifname% disconnected +;label-disconnected-foreground = ${colors.foreground-alt} + +[module/pulseaudio] +type = internal/pulseaudio + +format-muted-prefix = " " +format-muted-prefix-foreground = ${colors.foreground-alt} + +format-volume-prefix = " " +format-volume-prefix-foregroud = ${colors.foreground-alt} + +format-volume = +label-volume = VOL %percentage%% +label-volume-foreground = ${root.foreground} + +label-muted = muted +label-muted-foreground = #666 + +bar-volume-width = 8 +bar-volume-foreground-0 = #55aa55 +bar-volume-foreground-1 = #55aa55 +bar-volume-foreground-2 = #55aa55 +bar-volume-foreground-3 = #55aa55 +bar-volume-foreground-4 = #55aa55 +bar-volume-foreground-5 = #f5a70a +bar-volume-foreground-6 = #ff5555 +bar-volume-gradient = false +bar-volume-indicator = | +bar-volume-indicator-font = 2 +bar-volume-fill = - +bar-volume-fill-font = 2 +bar-volume-empty = - +bar-volume-empty-font = 2 +bar-volume-empty-foreground = ${colors.foreground-alt} +format-overline = ${colors.primary} + +[module/battery] +type = internal/battery +battery = BAT0 +adapter = AC +full-at = 99 + +format-charging-prefix = " " +format-charging-prefix-foreground = ${colors.foreground-alt} +format-charging = + +label-charging = "BAT: %percentage%%" + +format-discharging-prefix = " " +format-discharging-prefix-foreground = ${colors.foreground-alt} +format-discharging = + +label-discharging = "BAT: %percentage%%" + +format-full-prefix = " " +format-full-prefix-foreground = ${colors.foreground-alt} + +[module/temperature] +type = internal/temperature +thermal-zone = 0 +warn-temperature = 60 + +format =