aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2022-11-18 14:09:34 -0800
committerclarkzjw <[email protected]>2022-11-18 14:09:34 -0800
commitf04340dfac53d6fa1335fa0ecfbe8f024111e457 (patch)
tree5c20a29dbb56f88f367a95cbf055c04e8b9c6c24 /dot_config
parentf964bec3d1d4130ad8eec4d6f2157d19beb4c559 (diff)
downloaddotfiles-f04340dfac53d6fa1335fa0ecfbe8f024111e457.tar.gz
i3: bind F9 to switch between screen layouts
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/i3/config8
-rw-r--r--dot_config/rofi/monitor.rasi112
2 files changed, 118 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
191bindsym F9 exec --no-startup-id ~/.config/i3/scripts/monitor
192
193
190# Backlight control 194# Backlight control
191bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight +5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" 195bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight +5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%"
192bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" 196bindsym 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:
363exec --no-startup-id ~/.screenlayout/monitor.sh 367exec --no-startup-id ~/.screenlayout/builtin-only.sh
364 368
365# set wallpaper 369# set wallpaper
366exec --no-startup-id nitrogen --restore 370exec --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
531bindsym $mod+d exec rofi -modi drun -show drun \ 535bindsym $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 @@
1configuration {
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
12window {
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}
22listview {
23 lines: 3;
24 columns: 1;
25 scrollbar: false;
26}
27element {
28 border: 0;
29 padding: 1px;
30}
31element-text {
32 background-color: inherit;
33 text-color: inherit;
34}
35element.normal.normal {
36 background-color: @normal-background;
37 text-color: @normal-foreground;
38}
39element.normal.urgent {
40 background-color: @urgent-background;
41 text-color: @urgent-foreground;
42}
43element.normal.active {
44 background-color: @active-background;
45 text-color: @active-foreground;
46}
47element.selected.normal {
48 background-color: @selected-normal-background;
49 text-color: @selected-normal-foreground;
50}
51element.selected.urgent {
52 background-color: @selected-urgent-background;
53 text-color: @selected-urgent-foreground;
54}
55element.selected.active {
56 background-color: @selected-active-background;
57 text-color: @selected-active-foreground;
58}
59element.alternate.normal {
60 background-color: @alternate-normal-background;
61 text-color: @alternate-normal-foreground;
62}
63element.alternate.urgent {
64 background-color: @alternate-urgent-background;
65 text-color: @alternate-urgent-foreground;
66}
67element.alternate.active {
68 background-color: @alternate-active-background;
69 text-color: @alternate-active-foreground;
70}
71scrollbar {
72 width: 4px;
73 border: 0;
74 handle-color: @normal-foreground;
75 handle-width: 8px;
76 padding: 0;
77}
78mode-switcher {
79 border: 2px 0px 0px;
80 border-color: @separatorcolor;
81}
82button {
83 spacing: 0;
84 text-color: @normal-foreground;
85}
86button.selected {
87 background-color: @selected-normal-background;
88 text-color: @selected-normal-foreground;
89}
90case-indicator {
91 spacing: 0;
92 text-color: @normal-foreground;
93}
94entry {
95 spacing: 0;
96 text-color: @normal-foreground;
97}
98prompt {
99 spacing: 0;
100 text-color: @normal-foreground;
101}
102inputbar {
103 enabled: false;
104 children: [ case-indicator ];
105}
106textbox-prompt-colon {
107 expand: false;
108 str: ":";
109 margin: 0px 0.3em 0em 0em;
110 text-color: @normal-foreground;
111}
112
Powered by cgit v1.2.3 (git 2.41.0)