my dotz
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge remote-tracking branch 'origin/master'

+94 -128
+5
.config/kanshi/config
··· 9 9 10 10 profile { 11 11 output eDP-1 disable 12 + output DP-4 enable 13 + } 14 + 15 + profile { 16 + output eDP-1 disable 12 17 output DP-2 mode 1920x1080 position 0,0 13 18 output HDMI-A-1 mode 1920x1080 position 1920,0 14 19 }
+4
.config/nvim/init.vim
··· 7 7 Plug 'ctrlpvim/ctrlp.vim' 8 8 Plug 'cormacrelf/vim-colors-github' 9 9 Plug 'dewyze/vim-tada' 10 + Plug 'tidalcycles/vim-tidal' 10 11 call plug#end() 11 12 12 13 colorscheme github ··· 99 100 " bindings 100 101 let mapleader = "," 101 102 nmap <leader>m Go<esc>:put =strftime(\"%Y-%m-%d\")<cr>o----------------<cr><esc> 103 + 104 + " use neovim's own terminal instead of tmux: 105 + let g:tidal_target = "terminal"
+52 -122
.config/sway/config
··· 1 - # Default config for sway 2 - # 3 - # Copy this to ~/.config/sway/config and edit it to your liking. 4 - # 5 - # Read `man 5 sway` for a complete reference. 6 - 7 - ### Variables 8 - # 9 - # Logo key. Use Mod1 for Alt. 1 + # vars 10 2 set $mod Mod4 11 - # Home row direction keys, like vim 12 3 set $left h 13 4 set $down j 14 5 set $up k 15 6 set $right l 16 - # Your preferred terminal emulator 17 7 set $term foot 18 8 19 - ### Output configuration 20 - # 21 - # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) 22 - # output * bg /home/j3s/Pictures/wallpapers/widelain.jpg fill 23 - # 24 - # Example configuration: 25 - # 26 - # output HDMI-A-1 resolution 1920x1080 position 1920,0 27 - # 28 - # You can get the names of your outputs by running: swaymsg -t get_outputs 9 + set $wssteam "steam" 10 + set $wsdota2 "dota2" 11 + set $wssuperautopets "super auto pets" 12 + 29 13 output DP-1 disable 14 + # qweh? 30 15 # output HDMI-A-2 position 1920,215 resolution 2560x1440@170hz 31 16 # output HDMI-A-1 position 0,395 resolution 1920x1080@74hz 32 17 # output HDMI-A-2 position 4480,0 resolution 1920x1080@74hz transform 90 33 18 34 - ### Idle configuration 35 - # 36 - # Example configuration: 37 - # 38 - #exec swayidle -w \ 39 - # timeout 300 'swaylock -f -c 000000' \ 40 - # timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ 41 - # before-sleep 'swaylock -f -c 000000' 42 - # 43 - # This will lock your screen after 300 seconds of inactivity, then turn off 44 - # your displays after another 300 seconds, and turn your screens back on when 45 - # resumed. It will also lock your screen before your computer goes to sleep. 46 - 47 - ### Input configuration 48 - # 49 - # Example configuration: 50 - # 51 - # input "2:14:SynPS/2_Synaptics_TouchPad" { 52 - # dwt enabled 53 - # tap enabled 54 - # natural_scroll enabled 55 - # middle_emulation enabled 56 - # } 57 - # 58 - # You can get the names of your inputs by running: swaymsg -t get_inputs 59 - # Read `man 5 sway-input` for more information about this section. 60 - 61 19 input "type:keyboard" { 62 20 xkb_layout us 63 21 xkb_options ctrl:nocaps ··· 68 26 scroll_button 275 69 27 } 70 28 71 - ### Key bindings 72 - # 73 - # Basics: 74 - # 75 - client.focused #4c7899 #000000 #000000 #2e9ef4 #97f0a6 76 - for_window [title="^weallfloatdownhere$"] floating enable, border pixel 29 + # default workspaces 30 + assign [class="^Steam$"] $wssteam 31 + assign [class="^dota2$"] $wsdota2 32 + assign [class="^superautopets.x86_64$"] $wssuperautopets 77 33 78 - # Start a terminal 79 - bindsym $mod+Return exec $term 34 + # layout options 35 + for_window [title="^weallfloatdownhere$"] floating enable, border pixel 80 36 81 - # floating terms 82 - bindsym $mod+Shift+Return exec $term --title 'weallfloatdownhere' 83 - 84 - # Kill focused window 85 - bindsym $mod+Shift+q kill 86 - 87 - # notification management (i don't use the Delete key at all) 88 - bindsym Delete exec makoctl dismiss 89 - bindsym $mod+Delete exec makoctl dismiss --all 90 - 91 - # bind bad return presses to nothing 92 - # bindsym Shift+Return Return 93 - bindsym Mod1+Shift+Return Return 94 - 95 - # Start your launcher 96 - bindsym $mod+d exec fuzzel 37 + for_window [app_id="^firefox$"] layout tabbed 38 + for_window [class="^Steam$"] layout tabbed 39 + for_window [title="Virtual Machine Manager"] layout tabbed 97 40 98 - # Password manager 99 - bindsym $mod+Shift+p exec --no-startup-id pa-fuzzel 41 + for_window [title="Firefox โ€” Sharing Indicator"] floating enable 42 + for_window [title="Firefox โ€” Sharing Indicator"] kill 100 43 101 - # Drag floating windows by holding down $mod and left mouse button. 102 - # Resize them with right mouse button + $mod. 103 - # Despite the name, also works for non-floating windows. 104 - # Change normal to inverse to use left mouse button for resizing and right 105 - # mouse button for dragging. 106 - floating_modifier $mod normal 44 + ### keybinds ### 45 + bindsym $mod+Return exec $term 46 + bindsym $mod+Shift+Return exec $term --title 'weallfloatdownhere' 47 + bindsym $mod+Shift+q kill 48 + bindsym Delete exec makoctl dismiss 49 + bindsym $mod+Delete exec makoctl dismiss --all 50 + bindsym Mod1+Shift+Return Return 51 + bindsym $mod+d exec fuzzel 52 + bindsym $mod+Shift+p exec --no-startup-id pa-fuzzel 53 + bindsym $mod+Shift+c reload 54 + bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit' 107 55 108 - # Reload the configuration file 109 - bindsym $mod+Shift+c reload 56 + # Drag floating windows by holding down $mod and left mouse button. 57 + # Resize them with right mouse button + $mod. 58 + # Despite the name, also works for non-floating windows. 59 + # Change normal to inverse to use left mouse button for resizing and right 60 + # mouse button for dragging. 61 + floating_modifier $mod normal 110 62 111 - # Exit sway (logs you out of your Wayland session) 112 - bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit' 113 63 # 114 64 # Moving around: 115 65 # ··· 194 144 195 145 # Float config 196 146 # use swaymsg -t get_tree to find class or app_id 197 - for_window [class="Steam"] floating enable 198 - for_window [class="Mumble"] floating enable 199 - for_window [class="Dino"] floating enable 200 - for_window [title="Firefox โ€” Sharing Indicator"] floating enable 201 - for_window [title="Virtual Machine Manager"] floating enable 202 - for_window [title="Firefox โ€” Sharing Indicator"] kill 203 147 # for_window [class="Dota 2"] floating enable, border none 204 148 # 205 149 # Scratchpad: ··· 220 164 221 165 bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy 222 166 223 - # 224 - # Resizing containers: 225 - # 226 - mode "resize" { 227 - # left will shrink the containers width 228 - # right will grow the containers width 229 - # up will shrink the containers height 230 - # down will grow the containers height 231 - bindsym $left resize shrink width 10px 232 - bindsym $down resize grow height 10px 233 - bindsym $up resize shrink height 10px 234 - bindsym $right resize grow width 10px 235 - 236 - # Ditto, with arrow keys 237 - bindsym Left resize shrink width 10px 238 - bindsym Down resize grow height 10px 239 - bindsym Up resize shrink height 10px 240 - bindsym Right resize grow width 10px 241 - 242 - # Return to default mode 243 - bindsym Return mode "default" 244 - bindsym Escape mode "default" 245 - } 246 - bindsym $mod+r mode "resize" 167 + include colorscheme 168 + client.focused $base05 $base0D $base00 $base0D $base0D 169 + client.focused_inactive $base01 $base01 $base05 $base03 $base01 170 + client.unfocused $base01 $base00 $base05 $base01 $base01 171 + client.urgent $base08 $base08 $base00 $base08 $base08 172 + client.placeholder $base00 $base00 $base05 $base00 $base00 173 + client.background $base07 247 174 248 - # 249 - # Status Bar: 250 - # 251 - # Read `man 5 sway-bar` for more information about this section. 252 175 bar { 253 176 position top 254 177 255 178 # When the status_command prints a new line to stdout, swaybar updates. 256 179 # The default just shows the current date and time. 257 180 status_command statusbar 181 + pango_markup enabled 258 182 259 183 colors { 260 - statusline #89CFF0 261 - focused_workspace #89cff0 #89cff0 #000000 262 - background #000000 263 - inactive_workspace #32323200 #32323200 #5c5c5c 184 + background $base00 185 + separator $base01 186 + statusline $base04 187 + 188 + # State Border BG Text 189 + focused_workspace $base05 $base0D $base00 190 + active_workspace $base05 $base03 $base00 191 + inactive_workspace $base03 $base01 $base05 192 + urgent_workspace $base08 $base08 $base00 193 + binding_mode $base00 $base0A $base00 264 194 } 265 195 } 266 196
+20
bin/nostromo/statusbar
··· 1 + #!/bin/sh 2 + 3 + get_bat() { 4 + bat="$(cat /sys/class/power_supply/BAT1/capacity)" 5 + if [ "$bat" -lt 10 ]; then 6 + printf '<span foreground="red">%s%%</span>' "$bat" 7 + else 8 + printf '%s%%' "$bat" 9 + fi 10 + } 11 + 12 + while true 13 + do 14 + time=$(date +"%A %Y-%m-%d %I:%M %p") 15 + time="$time $(date -u +"(%H:%M UTC)")" 16 + bat="$(get_bat)" 17 + wifi="$(nmcli -t dev show wlp170s0 | grep GENERAL.CONNECTION | cut -d ':' -f 2)" 18 + printf "wifi: %s | bat: %s | %s\n" "$wifi" "$bat" "$time" 19 + sleep 10 20 + done
+13 -6
bin/vol
··· 15 15 # prevent volumes of >100% for the 16 16 # good of all ears 17 17 pactl set-sink-volume @DEFAULT_SINK@ 100% 18 - notify-send '๐Ÿ”ˆ vol' --hint=int:value:100 -t 800 18 + notify-send '๐Ÿ”ˆ vol' --hint=int:value:100 -t 800 -h string:x-canonical-private-synchronous:anything 19 19 elif [ "$vol" -lt 0 ]; then 20 20 # prevent volumes of <0% for the 21 21 # good of all ... dog... whateij fiwjoefj 22 22 pactl set-sink-volume @DEFAULT_SINK@ 0% 23 - notify-send '๐Ÿ”ˆ vol' --hint=int:value:0 -t 800 23 + notify-send '๐Ÿ”ˆ vol' --hint=int:value:0 -t 800 -h string:x-canonical-private-synchronous:anything 24 24 else 25 - notify-send '๐Ÿ”ˆ vol' --hint=int:value:"$vol" -t 800 25 + notify-send '๐Ÿ”ˆ vol' --hint=int:value:"$vol" -t 800 -h string:x-canonical-private-synchronous:anything 26 26 fi 27 27 } 28 28 29 29 case "$1" in 30 - ls|list) pactl list short sinks ;; 31 - set) pactl set-default-sink "$2" ;; 30 + ls|list) 31 + pactl list short sinks | awk '{print $1" "$2}' 32 + ;; 33 + set) 34 + pactl set-default-sink "$2" 35 + ;; 32 36 [0-9]*) 33 37 pactl set-sink-volume @DEFAULT_SINK@ "$1"% 34 38 notify_current_volume ··· 42 46 pactl set-sink-volume @DEFAULT_SINK@ -"$2"% 43 47 notify_current_volume 44 48 ;; 45 - *) ;; 49 + *) 50 + printf "unknown command\n" 51 + exit 1 52 + ;; 46 53 esac