dotfiles

Alpine Linux dotfiles

git clone git://git.lin.moe/dotfiles.git

  1########### Workspace #############
  2bindsym $mod+$left focus left
  3bindsym $mod+$down focus down
  4bindsym $mod+$up focus up
  5bindsym $mod+$right focus right
  6  
  7bindsym $mod+Left focus left
  8bindsym $mod+Down focus down
  9bindsym $mod+Up focus up
 10bindsym $mod+Right focus right
 11
 12bindsym $mod+Shift+$left move left
 13bindsym $mod+Shift+$down move down
 14bindsym $mod+Shift+$up move up
 15bindsym $mod+Shift+$right move right
 16  
 17bindsym $mod+Shift+Left move left
 18bindsym $mod+Shift+Down move down
 19bindsym $mod+Shift+Up move up
 20bindsym $mod+Shift+Right move right
 21
 22set $ws1 number 1
 23set $ws2 number 2
 24set $ws3 number 3
 25set $ws4 number 4
 26set $ws5 number 5
 27set $ws6 number 6
 28set $ws7 number 7
 29set $ws8 number 8
 30set $ws9 number 9
 31set $ws10 number 10
 32
 33
 34bindsym $mod+1 workspace $ws1
 35bindsym $mod+2 workspace $ws2
 36bindsym $mod+3 workspace $ws3
 37bindsym $mod+4 workspace $ws4
 38bindsym $mod+5 workspace $ws5
 39bindsym $mod+6 workspace $ws6
 40bindsym $mod+7 workspace $ws7
 41bindsym $mod+8 workspace $ws8
 42bindsym $mod+9 workspace $ws9
 43bindsym $mod+0 workspace $ws10
 44
 45bindsym $mod+Shift+1 move container to workspace $ws1
 46bindsym $mod+Shift+2 move container to workspace $ws2
 47bindsym $mod+Shift+3 move container to workspace $ws3
 48bindsym $mod+Shift+4 move container to workspace $ws4
 49bindsym $mod+Shift+5 move container to workspace $ws5
 50bindsym $mod+Shift+6 move container to workspace $ws6
 51bindsym $mod+Shift+7 move container to workspace $ws7
 52bindsym $mod+Shift+8 move container to workspace $ws8
 53bindsym $mod+Shift+9 move container to workspace $ws9
 54bindsym $mod+Shift+0 move container to workspace $ws10
 55  
 56bindsym $mod+b splith
 57bindsym $mod+v splitv
 58
 59bindsym $mod+s layout stacking
 60bindsym $mod+w layout tabbed
 61bindsym $mod+e layout toggle split
 62  
 63bindsym $mod+f fullscreen
 64
 65bindsym --whole-window {
 66    $mod+button4 workspace prev
 67    $mod+button5 workspace next
 68}
 69  
 70bindsym $mod+Shift+space floating toggle
 71 
 72bindsym $mod+space focus mode_toggle
 73
 74bindsym $mod+a focus parent
 75
 76bindsym $mod+r mode "resize"
 77mode "resize" {
 78    bindsym $left resize shrink width 20px
 79    bindsym $down resize grow height 20px
 80    bindsym $up resize shrink height 20px
 81    bindsym $right resize grow width 20px
 82
 83    bindsym Left resize shrink width 20px
 84    bindsym Down resize grow height 20px
 85    bindsym Up resize shrink height 20px
 86    bindsym Right resize grow width 20px
 87
 88    # Return to default mode
 89    bindsym $mod+r mode "default"
 90    bindsym Return mode "default"
 91    bindsym Escape mode "default"
 92}
 93
 94bindsym $mod+Shift+minus move scratchpad
 95bindsym $mod+minus scratchpad show
 96bindsym $mod+equal sticky toggle
 97
 98bindsym $mod+Shift+q kill
 99
100
101########### Applications #################
102# terminal
103bindsym $mod+Return exec $term
104bindsym $mod+Shift+Return exec alacritty
105
106# rofi 
107bindsym --no-repeat $mod+d exec "rofi -modi drun,ssh,run -show drun"
108# rofi-window $mod + \
109bindcode --no-repeat $mod+51 exec "rofi -show window -case-smart"
110
111## pass
112bindsym --no-repeat $mod+p exec "python ~/.config/rofi/scripts/pass.py -p "
113bindsym --no-repeat $mod+Shift+p exec "python ~/.config/rofi/scripts/pass.py -o"
114
115bindsym --no-repeat $mod+i exec clipman pick --tool rofi -T'-i'
116bindsym --no-repeat $mod+Shift+i exec clipman clear -t rofi
117
118bindsym $mod+o mode "App"
119mode "App" {
120  bindsym b exec "~/.config/rofi/scripts/rofi-bluetooth", mode "default"
121  
122  bindsym l exec "swaylock -F --image $LOCKING_IMG", mode "default"
123  bindsym p exec "wl-paste | $HOME/.local/bin/pb | wl-copy", mode "default"
124  bindsym s exec "~/.config/rofi/scripts/sink.py", mode "default"
125  bindsym m exec 'grim -g "$(slurp)" -t png - | wl-copy -t image/png', mode "default"
126  bindsym $mod+m exec 'grim -g "$(slurp)" -t png - | swappy -f -', mode "default"
127  bindsym i exec 'makoctl dismiss -a', mode "default"
128  
129  bindsym space input type:touchpad events toggle enabled disabled, mode "default"
130  
131  bindsym Escape mode "default"
132  bindsym $mod+o mode "default"
133  bindsym Return mode "default"
134}