diff options
author | clarkzjw <[email protected]> | 2022-11-18 14:09:34 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2022-11-18 14:09:34 -0800 |
commit | f04340dfac53d6fa1335fa0ecfbe8f024111e457 (patch) | |
tree | 5c20a29dbb56f88f367a95cbf055c04e8b9c6c24 | |
parent | f964bec3d1d4130ad8eec4d6f2157d19beb4c559 (diff) | |
download | dotfiles-f04340dfac53d6fa1335fa0ecfbe8f024111e457.tar.gz |
i3: bind F9 to switch between screen layouts
-rw-r--r-- | dot_config/i3/config | 8 | ||||
-rw-r--r-- | dot_config/rofi/monitor.rasi | 112 | ||||
-rw-r--r-- | dot_gitconfig | 1 | ||||
-rw-r--r-- | dot_screenlayout/private_executable_builtin-only.sh (renamed from dot_screenlayout/private_executable_monitor.sh) | 0 |
4 files changed, 119 insertions, 2 deletions
diff --git a/dot_config/i3/config b/dot_config/i3/config index 5fa0715..ef94027 100644 --- a/dot_config/i3/config +++ b/dot_config/i3/config | |||
@@ -187,6 +187,10 @@ bindsym F1 exec ~/.config/i3/scripts/keyhint-2 | |||
187 | # keybinding list in editor: | 187 | # keybinding list in editor: |
188 | # bindsym $mod+F1 exec xed ~/.config/i3/keybindings | 188 | # bindsym $mod+F1 exec xed ~/.config/i3/keybindings |
189 | 189 | ||
190 | # switch between builtin monitor and external monitors | ||
191 | bindsym F9 exec --no-startup-id ~/.config/i3/scripts/monitor | ||
192 | |||
193 | |||
190 | # Backlight control | 194 | # Backlight control |
191 | bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight +5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" | 195 | bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight +5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" |
192 | bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" | 196 | bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" |
@@ -360,7 +364,7 @@ exec --no-startup-id dex --autostart --environment i3 | |||
360 | 364 | ||
361 | # start a script to setup displays | 365 | # start a script to setup displays |
362 | # uncomment the next line, use arandr to setup displays and save the file as monitor: | 366 | # uncomment the next line, use arandr to setup displays and save the file as monitor: |
363 | exec --no-startup-id ~/.screenlayout/monitor.sh | 367 | exec --no-startup-id ~/.screenlayout/builtin-only.sh |
364 | 368 | ||
365 | # set wallpaper | 369 | # set wallpaper |
366 | exec --no-startup-id nitrogen --restore | 370 | exec --no-startup-id nitrogen --restore |
@@ -526,7 +530,7 @@ bar { | |||
526 | # Application menu handled by rofi: # | 530 | # Application menu handled by rofi: # |
527 | ##################################### | 531 | ##################################### |
528 | 532 | ||
529 | ## rofi bindings fancy application menu ($mod+d /F9 optional disabled) | 533 | ## rofi bindings fancy application menu |
530 | 534 | ||
531 | bindsym $mod+d exec rofi -modi drun -show drun \ | 535 | bindsym $mod+d exec rofi -modi drun -show drun \ |
532 | -config ~/.config/rofi/rofidmenu.rasi | 536 | -config ~/.config/rofi/rofidmenu.rasi |
diff --git a/dot_config/rofi/monitor.rasi b/dot_config/rofi/monitor.rasi new file mode 100644 index 0000000..08d3f4e --- /dev/null +++ b/dot_config/rofi/monitor.rasi | |||
@@ -0,0 +1,112 @@ | |||
1 | configuration { | ||
2 | font: "Noto Sans Regular 20"; | ||
3 | show-icons: false; | ||
4 | icon-theme: "Qogir"; | ||
5 | scroll-method: 0; | ||
6 | disable-history: false; | ||
7 | sidebar-mode: false; | ||
8 | } | ||
9 | |||
10 | @import "~/.config/rofi/arc_dark_transparent_colors.rasi" | ||
11 | |||
12 | window { | ||
13 | background-color: @background; | ||
14 | border: 0; | ||
15 | padding: 10; | ||
16 | transparency: "real"; | ||
17 | width: 200px; | ||
18 | location: center; | ||
19 | /*y-offset: 18;*/ | ||
20 | /*x-offset: 850;*/ | ||
21 | } | ||
22 | listview { | ||
23 | lines: 3; | ||
24 | columns: 1; | ||
25 | scrollbar: false; | ||
26 | } | ||
27 | element { | ||
28 | border: 0; | ||
29 | padding: 1px; | ||
30 | } | ||
31 | element-text { | ||
32 | background-color: inherit; | ||
33 | text-color: inherit; | ||
34 | } | ||
35 | element.normal.normal { | ||
36 | background-color: @normal-background; | ||
37 | text-color: @normal-foreground; | ||
38 | } | ||
39 | element.normal.urgent { | ||
40 | background-color: @urgent-background; | ||
41 | text-color: @urgent-foreground; | ||
42 | } | ||
43 | element.normal.active { | ||
44 | background-color: @active-background; | ||
45 | text-color: @active-foreground; | ||
46 | } | ||
47 | element.selected.normal { | ||
48 | background-color: @selected-normal-background; | ||
49 | text-color: @selected-normal-foreground; | ||
50 | } | ||
51 | element.selected.urgent { | ||
52 | background-color: @selected-urgent-background; | ||
53 | text-color: @selected-urgent-foreground; | ||
54 | } | ||
55 | element.selected.active { | ||
56 | background-color: @selected-active-background; | ||
57 | text-color: @selected-active-foreground; | ||
58 | } | ||
59 | element.alternate.normal { | ||
60 | background-color: @alternate-normal-background; | ||
61 | text-color: @alternate-normal-foreground; | ||
62 | } | ||
63 | element.alternate.urgent { | ||
64 | background-color: @alternate-urgent-background; | ||
65 | text-color: @alternate-urgent-foreground; | ||
66 | } | ||
67 | element.alternate.active { | ||
68 | background-color: @alternate-active-background; | ||
69 | text-color: @alternate-active-foreground; | ||
70 | } | ||
71 | scrollbar { | ||
72 | width: 4px; | ||
73 | border: 0; | ||
74 | handle-color: @normal-foreground; | ||
75 | handle-width: 8px; | ||
76 | padding: 0; | ||
77 | } | ||
78 | mode-switcher { | ||
79 | border: 2px 0px 0px; | ||
80 | border-color: @separatorcolor; | ||
81 | } | ||
82 | button { | ||
83 | spacing: 0; | ||
84 | text-color: @normal-foreground; | ||
85 | } | ||
86 | button.selected { | ||
87 | background-color: @selected-normal-background; | ||
88 | text-color: @selected-normal-foreground; | ||
89 | } | ||
90 | case-indicator { | ||
91 | spacing: 0; | ||
92 | text-color: @normal-foreground; | ||
93 | } | ||
94 | entry { | ||
95 | spacing: 0; | ||
96 | text-color: @normal-foreground; | ||
97 | } | ||
98 | prompt { | ||
99 | spacing: 0; | ||
100 | text-color: @normal-foreground; | ||
101 | } | ||
102 | inputbar { | ||
103 | enabled: false; | ||
104 | children: [ case-indicator ]; | ||
105 | } | ||
106 | textbox-prompt-colon { | ||
107 | expand: false; | ||
108 | str: ":"; | ||
109 | margin: 0px 0.3em 0em 0em; | ||
110 | text-color: @normal-foreground; | ||
111 | } | ||
112 | |||
diff --git a/dot_gitconfig b/dot_gitconfig index 27315b2..0a3fad2 100644 --- a/dot_gitconfig +++ b/dot_gitconfig | |||
@@ -1,5 +1,6 @@ | |||
1 | [user] | 1 | [user] |
2 | name = clarkzjw | 2 | name = clarkzjw |
3 | email = [email protected] | 3 | email = [email protected] |
4 | signingkey = DD3B254076A2E156! | ||
4 | [init] | 5 | [init] |
5 | defaultBranch = master | 6 | defaultBranch = master |
diff --git a/dot_screenlayout/private_executable_monitor.sh b/dot_screenlayout/private_executable_builtin-only.sh index c7940ce..c7940ce 100644 --- a/dot_screenlayout/private_executable_monitor.sh +++ b/dot_screenlayout/private_executable_builtin-only.sh | |||