repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk

5d2846f8590ddca03ff432d155d2f4d94dd5b093

Oliver Krylow <okr@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (3)

TODO.md

Modified
16 16 ## x230
18 +- [ ] package indexa AUR
18 19 - [ ] pacman hook reflector on mirrorlist
20 +- [ ] pacman trigger for "needs reboot"
19 21 - [ ] install pipewire
20 22 - [ ] Configure makepkg and paru
21 23 - [ ] pacman paru makepkg sscache ?

river/init

Modified
13 13 alt="Mod1"
14 14 ctrl="Control"
16 -# super+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot)
17 -# riverctl map normal $super+Shift Return spawn foot
18 16 riverctl map normal $super Return spawn wezterm
19 17 riverctl map normal $super B spawn firefox
18 +riverctl map normal $super asciicircum spawn 'fuzzel --terminal "wezterm start"'
21 -# super+Q to close the focused view
20 +# close the focused view
22 21 riverctl map normal $super Q close
24 -# super+E to exit river
23 +# exit river
25 24 riverctl map normal $super+Shift E exit
27 -# super+J and Mod+K to focus the next/previous view in the layout stack
26 +# focus the next/previous view in the layout stack
28 27 riverctl map normal $super J focus-view next
29 28 riverctl map normal $super K focus-view previous
30 -# super+Shift+J and Mod+Shift+K to swap the focused view with the next/previous
31 -# view in the layout stack
29 +# swap the focused view with the next/previous view in the layout stack
32 30 riverctl map normal $super+Shift J swap next
33 31 riverctl map normal $super+Shift K swap previous
35 -# super+Period and Mod+Comma to focus the next/previous output
33 +# focus the next/previous output
36 34 riverctl map normal $super Period focus-output next
37 35 riverctl map normal $super Comma focus-output previous
39 -# super+Shift+{Period,Comma} to send the focused view to the next/previous output
37 +# send the focused view to the next/previous output
40 38 riverctl map normal $super+Shift Period send-to-output next
41 39 riverctl map normal $super+Shift Comma send-to-output previous
43 -# super+Return to bump the focused view to the top of the layout stack
41 +# bump the focused view to the top of the layout stack
44 42 riverctl map normal $super+Shift Space zoom
46 -# super+H and Mod+L to decrease/increase the main ratio of rivertile(1)
44 +# decrease/increase the main ratio of rivertile(1)
47 45 riverctl map normal $super H send-layout-cmd rivertile "main-ratio -0.05"
48 46 riverctl map normal $super L send-layout-cmd rivertile "main-ratio +0.05"
50 -# super+Shift+H and Mod+Shift+L to increment/decrement the main count of rivertile(1)
48 +# increment/decrement the main count of rivertile(1)
51 49 riverctl map normal $super+Shift H send-layout-cmd rivertile "main-count +1"
52 50 riverctl map normal $super+Shift L send-layout-cmd rivertile "main-count -1"
53 -# super+Alt+{H,J,K,L} to move views
52 +# move views
55 53 riverctl map normal $super+$alt H move left 100
56 54 riverctl map normal $super+$alt J move down 100
57 55 riverctl map normal $super+$alt K move up 100
58 56 riverctl map normal $super+$alt L move right 100
60 -# super+Alt+Control+{H,J,K,L} to snap views to screen edges
58 +# snap views to screen edges
61 59 riverctl map normal $super+$alt+Control H snap left
62 60 riverctl map normal $super+$alt+Control J snap down
63 61 riverctl map normal $super+$alt+Control K snap up
64 62 riverctl map normal $super+$alt+Control L snap right
66 -# super+Alt+Shif+{H,J,K,L} to resize views
64 +# resize views
67 65 riverctl map normal $super+$alt+Shift H resize horizontal -100
68 66 riverctl map normal $super+$alt+Shift J resize vertical 100
69 67 riverctl map normal $super+$alt+Shift K resize vertical -100
70 68 riverctl map normal $super+$alt+Shift L resize horizontal 100
72 -# super + Left Mouse Button to move views
70 +# move views
73 71 riverctl map-pointer normal $super BTN_LEFT move-view
75 -# super + Right Mouse Button to resize views
73 +# resize views
76 74 riverctl map-pointer normal $super BTN_RIGHT resize-view
78 76 for i in $(seq 1 9)
80 78 tags=$((1 << ($i - 1)))
82 - # super+[1-9] to focus tag [0-8]
80 + # focus tag [0-8]
83 81 riverctl map normal $super $i set-focused-tags $tags
85 - # super+Shift+[1-9] to tag focused view with tag [0-8]
83 + # tag focused view with tag [0-8]
86 84 riverctl map normal $super+Shift $i set-view-tags $tags
88 - # super+Ctrl+[1-9] to toggle focus of tag [0-8]
86 + # toggle focus of tag [0-8]
89 87 riverctl map normal $super+Control $i toggle-focused-tags $tags
91 - # super+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
89 + # toggle tag [0-8] of focused view
92 90 riverctl map normal $super+Shift+Control $i toggle-view-tags $tags
95 -# super+0 to focus all tags
96 -# super+Shift+0 to tag focused view with all tags
97 93 all_tags=$(((1 << 32) - 1))
94 +# focus all tags
98 95 riverctl map normal $super 0 set-focused-tags $all_tags
96 +# tag focused view with all tags
99 97 riverctl map normal $super+Shift 0 set-view-tags $all_tags
101 -# super+Space to toggle float
99 +# toggle float
102 100 riverctl map normal $super Space toggle-float
104 -# super+F to toggle fullscreen
102 +# toggle fullscreen
105 103 riverctl map normal $super F toggle-fullscreen
107 -# super+{Up,Right,Down,Left} to change layout orientation
105 +# change layout orientation
108 106 riverctl map normal $super Up send-layout-cmd rivertile "main-location top"
109 107 riverctl map normal $super Right send-layout-cmd rivertile "main-location right"
110 108 riverctl map normal $super Down send-layout-cmd rivertile "main-location bottom"
114 112 # normal mode. This makes it useful for testing a nested wayland compositor
115 113 riverctl declare-mode passthrough
117 -# super+F11 to enter passthrough mode
115 +# enter passthrough mode
118 116 riverctl map normal $super F11 enter-mode passthrough
120 -# super+F11 to return to normal mode
118 +# return to normal mode
121 119 riverctl map passthrough $super F11 enter-mode normal
123 121 # Various media key mapping examples for both normal and locked mode which do
124 122 # not have a modifier
125 123 for mode in normal locked
127 - # Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
128 - riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
129 - riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
130 - riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
132 - # Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
133 - riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
134 - riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
135 - riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
136 - riverctl map $mode None XF86AudioNext spawn 'playerctl next'
125 + # TODO these do nothing for now. do i even want sound here?
126 + # riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
127 + # riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
128 + # riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
129 + # riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
130 + # riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
131 + # riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
132 + # riverctl map $mode None XF86AudioNext spawn 'playerctl next'
138 134 # Control screen backlight brighness with kira (https://github.com/bugabinga/kira)
139 135 riverctl map $mode None XF86MonBrightnessUp spawn 'kira +5'
140 136 riverctl map $mode None XF86MonBrightnessDown spawn 'kira -5'
138 + riverctl map $mode None XF86Launch1 spawn 'code'
143 -riverctl input 2:10:TPPS/2_IBM_TrackPoint natural-scroll enabled
144 -riverctl input 2:10:TPPS/2_IBM_TrackPoint accel-profile flat
145 -riverctl input 2:10:TPPS/2_IBM_TrackPoint disable-while-typing enabled
142 +riverctl input pointer-2-10-TPPS/2_IBM_TrackPoint natural-scroll enabled
143 +riverctl input pointer-2-10-TPPS/2_IBM_TrackPoint accel-profile flat
144 +riverctl input pointer-2-10-TPPS/2_IBM_TrackPoint disable-while-typing enabled
146 146 riverctl set-cursor-warp on-output-change
148 148 # Set background and border color
149 149 riverctl background-color 0x000000
150 -riverctl border-color-focused 0x993311
151 -riverctl border-color-unfocused 0x332211
150 +riverctl border-color-focused 0x31ae99
151 +riverctl border-color-unfocused 0x113131
152 +riverctl border-color-urgent 0xaefeff
153 +riverctl border-width 1
153 155 # Set repeat rate
154 156 riverctl set-repeat 50 300

wezterm/wezterm.lua

Modified
1 1 local wez = require'wezterm'
2 - return {
2 +local hostname = wez.hostname()
4 +local enable_wayland = false
5 +local window_decorations = 'TITLE|RESIZE'
6 +local dpi = nil
7 +local color_scheme = 'nord-light'
9 +if hostname == "x230" then
10 + enable_wayland = true
11 + window_decorations = 'NONE'
12 + dpi = 125.37
13 + color_scheme = 'nord'
14 +end
16 +local configuration = {
3 17 font = wez.font'JetBrainsMono Nerd Font',
4 - font_size = 11.0,
5 - color_scheme = 'nord',
18 + font_size = 13.0,
19 + color_scheme = color_scheme,
6 20 default_prog = {'nu'},
7 - window_decorations = 'RESIZE',
21 + dpi = dpi,
22 + window_decorations = window_decorations,
8 23 enable_tab_bar = true,
24 + hide_tab_bar_if_only_one_tab = true,
9 25 check_for_updates = false,
10 26 show_update_window = false,
11 - hide_tab_bar_if_only_one_tab = true,
12 27 tab_max_width = 24,
28 + enable_wayland = enable_wayland,
13 29 window_padding = {
14 30 left = 12,
15 31 right = 8,
16 32 top = 12,
17 33 bottom = 8,
18 - },
19 - colors = {
20 - tab_bar = {
21 - background = '#0B0022',
22 - active_tab = {
23 - bg_color = '#2B2042',
24 - fg_color = '#C0C0C0',
25 - intensity = 'Bold',
26 - },
27 - inactive_tab_hover = {
28 - bg_color = '#3B3052',
29 - fg_color = '#C0C0C0',
30 - italic = false,
31 - intensity = 'Half',
32 - },
33 - }
36 +return configuration