Lenovo Yoga
This commit is contained in:
36
README.org
Normal file
36
README.org
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
#+TITLE:my dots
|
||||||
|
|
||||||
|
dots for my lenovo yoga slim 7i pro 「itomori」
|
||||||
|
|
||||||
|
[[./screen.png]]
|
||||||
|
|
||||||
|
* an incomplete list of dependencies:
|
||||||
|
** main environment
|
||||||
|
+ emacs 💜
|
||||||
|
+ i3-gaps
|
||||||
|
+ alacritty
|
||||||
|
+ zsh
|
||||||
|
+ dunst
|
||||||
|
+ picom
|
||||||
|
+ polybar
|
||||||
|
+ rofi
|
||||||
|
+ xlock
|
||||||
|
** main programs
|
||||||
|
+ discord
|
||||||
|
+ spotify
|
||||||
|
+ seafile-applet
|
||||||
|
+ keepassxc
|
||||||
|
+ okular / zathura
|
||||||
|
** control stuff
|
||||||
|
+ [[https://github.com/bulletmark/libinput-gestures][libinput-gestures]]
|
||||||
|
+ amixer
|
||||||
|
+ playerctl
|
||||||
|
+ light
|
||||||
|
+ feh
|
||||||
|
+ [[https://github.com/marcothms/enact/tree/new_primary][enact]]
|
||||||
|
+ nm-applet
|
||||||
|
+ xdotool
|
||||||
|
+ wmctrl
|
||||||
|
** special stuff
|
||||||
|
+ fcitx5 (with mozc)
|
||||||
|
+ hunspell DE
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
Xft.dpi: 180
|
||||||
|
|
||||||
! Font
|
! Font
|
||||||
XTerm.vt100.faceName: xft:SFMono Nerd Font Mono:antialias=true
|
XTerm.vt100.faceName: xft:SFMono Nerd Font Mono:antialias=true
|
||||||
XTerm.vt100.faceSize: 10
|
XTerm.vt100.faceSize: 10
|
||||||
|
|||||||
@@ -4,23 +4,24 @@
|
|||||||
|
|
||||||
monitor = 0
|
monitor = 0
|
||||||
follow = mouse
|
follow = mouse
|
||||||
geometry = "400x6-30+60"
|
width = 400
|
||||||
|
origin = "top-center"
|
||||||
|
offset = "0x80"
|
||||||
indicate_hidden = yes
|
indicate_hidden = yes
|
||||||
shrink = no
|
shrink = no
|
||||||
notification_height = 15
|
|
||||||
separator_height = 1
|
separator_height = 1
|
||||||
transparency = 0
|
transparency = 0
|
||||||
padding = 10
|
padding = 8
|
||||||
horizontal_padding = 10
|
horizontal_padding = 8
|
||||||
frame_width = 0
|
frame_width = 2
|
||||||
frame_color = "#aaaaaa"
|
frame_color = "#A6CC70"
|
||||||
separator_color = frame
|
separator_color = frame
|
||||||
sort = yes
|
sort = yes
|
||||||
idle_threshold = 120
|
idle_threshold = 120
|
||||||
|
|
||||||
# Text
|
# Text
|
||||||
|
|
||||||
font = JuliaMono 12
|
font = JuliaMono 10
|
||||||
line_height = 04
|
line_height = 04
|
||||||
markup = full
|
markup = full
|
||||||
format = "<span><b>%s %p</b></span>\n%b"
|
format = "<span><b>%s %p</b></span>\n%b"
|
||||||
@@ -36,8 +37,8 @@
|
|||||||
# Icons
|
# Icons
|
||||||
|
|
||||||
icon_position = left
|
icon_position = left
|
||||||
min_icon_size = 48
|
min_icon_size = 16
|
||||||
max_icon_size = 96
|
max_icon_size = 48
|
||||||
icon_path = /usr/share/icons/Papirus/48x48/status/:/usr/share/icons/Papirus/48x48/devices/:/usr/share/icons/Papirus/48x48/apps/
|
icon_path = /usr/share/icons/Papirus/48x48/status/:/usr/share/icons/Papirus/48x48/devices/:/usr/share/icons/Papirus/48x48/apps/
|
||||||
|
|
||||||
# History
|
# History
|
||||||
@@ -48,32 +49,22 @@
|
|||||||
# Misc
|
# Misc
|
||||||
|
|
||||||
always_run_script = true
|
always_run_script = true
|
||||||
startup_notification = false
|
corner_radius = 0
|
||||||
verbosity = mesg
|
|
||||||
corner_radius = 2
|
|
||||||
force_xinerama = false
|
force_xinerama = false
|
||||||
mouse_left_click = do_action
|
mouse_left_click = do_action
|
||||||
mouse_middle_click = close_all
|
mouse_middle_click = close_all
|
||||||
mouse_right_click = close_current
|
mouse_right_click = close_current
|
||||||
|
|
||||||
|
|
||||||
[shortcuts]
|
|
||||||
close = ctrl+Escape
|
|
||||||
history = ctrl+shift+Escape
|
|
||||||
context = ctrl+shift+period
|
|
||||||
|
|
||||||
|
|
||||||
[urgency_low]
|
[urgency_low]
|
||||||
background="#ffffff"
|
background="#ffffff"
|
||||||
foreground="#050505"
|
foreground="#050505"
|
||||||
timeout = 7
|
timeout = 3
|
||||||
|
|
||||||
|
|
||||||
[urgency_normal]
|
[urgency_normal]
|
||||||
background="#ffffff"
|
background="#ffffff"
|
||||||
foreground="#050505"
|
foreground="#050505"
|
||||||
timeout = 10
|
timeout = 3
|
||||||
|
|
||||||
|
|
||||||
[urgency_critical]
|
[urgency_critical]
|
||||||
background="#ffffff"
|
background="#ffffff"
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
font pango:JuliaMono 12
|
font pango:JuliaMono 10
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
bindsym $mod+Return exec --no-startup-id alacritty
|
bindsym $mod+Return exec --no-startup-id alacritty
|
||||||
bindsym $mod+d exec --no-startup-id rofi -show drun
|
bindsym $mod+d exec --no-startup-id rofi -theme ~/.config/rofi/light.rasi -show drun
|
||||||
bindsym $mod+Shift+s exec --no-startup-id flameshot gui
|
bindsym $mod+Shift+s exec --no-startup-id flameshot gui
|
||||||
|
bindsym XF86Calculator exec --no-startup-id emacs
|
||||||
|
|
||||||
# audio and brightness
|
# audio and brightness
|
||||||
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
|
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
|
||||||
@@ -17,6 +18,10 @@ bindsym XF86AudioPrev exec --no-startup-id playerctl previous
|
|||||||
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5
|
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5
|
||||||
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5
|
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5
|
||||||
|
|
||||||
|
# notifications
|
||||||
|
bindsym Ctrl+space exec --no-startup-id dunstctl close
|
||||||
|
bindsym Ctrl+Shift+space exec --no-startup-id dunstctl history-pop
|
||||||
|
|
||||||
# kill focused window
|
# kill focused window
|
||||||
bindsym $mod+Shift+BackSpace kill
|
bindsym $mod+Shift+BackSpace kill
|
||||||
|
|
||||||
@@ -53,9 +58,6 @@ bindsym $mod+Shift+space floating toggle
|
|||||||
# workspace layout
|
# workspace layout
|
||||||
workspace_layout stacked
|
workspace_layout stacked
|
||||||
|
|
||||||
# change focus between tiling / floating windows
|
|
||||||
bindsym $mod+space focus mode_toggle
|
|
||||||
|
|
||||||
# workspaces
|
# workspaces
|
||||||
set $ws1 "1"
|
set $ws1 "1"
|
||||||
set $ws2 "2"
|
set $ws2 "2"
|
||||||
@@ -92,6 +94,9 @@ bindsym $mod+Shift+8 move container to workspace $ws8
|
|||||||
bindsym $mod+Shift+9 move container to workspace $ws9
|
bindsym $mod+Shift+9 move container to workspace $ws9
|
||||||
bindsym $mod+Shift+0 move container to workspace $ws10
|
bindsym $mod+Shift+0 move container to workspace $ws10
|
||||||
|
|
||||||
|
bindsym $mod+Left workspace prev
|
||||||
|
bindsym $mod+Right workspace next
|
||||||
|
|
||||||
# reload the configuration file
|
# reload the configuration file
|
||||||
bindsym $mod+Shift+c reload
|
bindsym $mod+Shift+c reload
|
||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
@@ -121,19 +126,20 @@ client.urgent $red $red $white $red $black
|
|||||||
for_window [class="Nautilus"] floating enable
|
for_window [class="Nautilus"] floating enable
|
||||||
for_window [class="Pavucontrol"] floating enable
|
for_window [class="Pavucontrol"] floating enable
|
||||||
for_window [title="Event Tester"] floating enable
|
for_window [title="Event Tester"] floating enable
|
||||||
|
for_window [class="flameshot"] floating enable
|
||||||
|
|
||||||
# border
|
# border
|
||||||
hide_edge_borders smart
|
hide_edge_borders smart
|
||||||
for_window [class="^.*"] border pixel 0
|
for_window [class="^.*"] border pixel 0
|
||||||
|
|
||||||
# bar
|
# bar
|
||||||
exec_always --no-startup-id /home/marc/dots/scripts/polybar.sh
|
exec_always --no-startup-id ~/dots/scripts/polybar.sh
|
||||||
|
|
||||||
# gaps
|
# gaps
|
||||||
gaps inner 10
|
gaps inner 10
|
||||||
|
|
||||||
# wallpaper
|
# wallpaper
|
||||||
exec_always --no-startup-id feh --bg-fill /home/marc/data/Seafile/images/wallpaper/life_and_death.png
|
exec_always --no-startup-id feh --bg-fill ~/data/Seafile/images/wallpaper/wallpaper.png
|
||||||
|
|
||||||
# startup
|
# startup
|
||||||
exec --no-startup-id nm-applet
|
exec --no-startup-id nm-applet
|
||||||
@@ -141,6 +147,7 @@ exec --no-startup-id keepassxc
|
|||||||
exec --no-startup-id seafile-applet
|
exec --no-startup-id seafile-applet
|
||||||
exec --no-startup-id fcitx5
|
exec --no-startup-id fcitx5
|
||||||
exec --no-startup-id picom --backend glx --no-vsync
|
exec --no-startup-id picom --backend glx --no-vsync
|
||||||
exec --no-startup-id enact --watch --pos top
|
exec --no-startup-id enact --watch --pos top -n 1
|
||||||
|
exec --no-startup-id libinput-gestures-setup start
|
||||||
|
|
||||||
exec_always --no-startup-id notify-send -i ~/.emacs.d/dashboard.png "よろしくマルコさん!" "「i3」へようこそ。"
|
exec_always --no-startup-id notify-send -i ~/data/Seafile/images/anime/dashboard.png "よろしくマルコさん!" "「i3」へようこそ。"
|
||||||
7
files/.config/libinput-gestures.conf
Normal file
7
files/.config/libinput-gestures.conf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
gesture: swipe left 3 xdotool key super+Left
|
||||||
|
gesture: swipe right 3 xdotool key super+Right
|
||||||
|
gesture: swipe up 3 xdotool key super+f
|
||||||
|
gesture: swipe down 3 xdotool key super+f
|
||||||
|
|
||||||
|
gesture: swipe left 4 xdotool key alt+Left
|
||||||
|
gesture: swipe right 4 xdotool key alt+Right
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
corner-radius = 8;
|
# corner-radius = 40;
|
||||||
|
|
||||||
rounded-corners-exclude = [
|
# rounded-corners-exclude = [
|
||||||
"class_g = 'i3bar'",
|
# "class_g = 'i3bar'",
|
||||||
"class_g = 'Polybar'",
|
# "class_g = 'Polybar'",
|
||||||
];
|
# ];
|
||||||
|
|
||||||
detect-rounded-corners = true
|
# detect-rounded-corners = true
|
||||||
|
|
||||||
shadow = true;
|
shadow = true;
|
||||||
shadow-radius = 15;
|
shadow-radius = 15;
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ red = #ff3333
|
|||||||
|
|
||||||
[bar/bar]
|
[bar/bar]
|
||||||
|
|
||||||
font-0 = "JuliaMono:pixelsize=10;3"
|
font-0 = "JuliaMono:pixelsize=10;4"
|
||||||
font-1 = "Noto Sans Mono CJK JP:pixelsize=10;1"
|
font-1 = "Noto Sans Mono CJK JP:pixelsize=10;3"
|
||||||
font-2 = "FontAwesome:pixelsize=10;3"
|
font-2 = "FontAwesome:pixelsize=10;4"
|
||||||
|
|
||||||
monitor = ${env:MON}
|
monitor = ${env:MON}
|
||||||
|
|
||||||
@@ -18,7 +18,9 @@ scroll-down = i3wm-wsnext
|
|||||||
fixed-center = true
|
fixed-center = true
|
||||||
|
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 30
|
height = 50
|
||||||
|
|
||||||
|
dpi = ${xrdb:Xft.dpi:-1}
|
||||||
|
|
||||||
background = ${colors.white}
|
background = ${colors.white}
|
||||||
foreground = ${colors.black}
|
foreground = ${colors.black}
|
||||||
@@ -26,6 +28,8 @@ foreground = ${colors.black}
|
|||||||
bottom = false
|
bottom = false
|
||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
|
tray-scale = 1.0
|
||||||
|
tray-maxsize = 25
|
||||||
|
|
||||||
line-size = 4
|
line-size = 4
|
||||||
|
|
||||||
@@ -34,8 +38,8 @@ padding-right = 1
|
|||||||
module-margin = 1
|
module-margin = 1
|
||||||
|
|
||||||
modules-left = logo i3 polywins
|
modules-left = logo i3 polywins
|
||||||
modules-center = date time
|
modules-center =
|
||||||
modules-right = backlight pulseaudio battery
|
modules-right = time date backlight pulseaudio battery conservation
|
||||||
|
|
||||||
[module/i3]
|
[module/i3]
|
||||||
strip-wsnumbers = true
|
strip-wsnumbers = true
|
||||||
@@ -45,17 +49,28 @@ wrapping-scroll = false
|
|||||||
type = internal/i3
|
type = internal/i3
|
||||||
format = <label-state> <label-mode>
|
format = <label-state> <label-mode>
|
||||||
|
|
||||||
label-focused = %index%
|
ws-icon-0 = 1;一
|
||||||
|
ws-icon-1 = 2;二
|
||||||
|
ws-icon-2 = 3;三
|
||||||
|
ws-icon-3 = 4;四
|
||||||
|
ws-icon-4 = 5;五
|
||||||
|
ws-icon-5 = 6;六
|
||||||
|
ws-icon-6 = 7;七
|
||||||
|
ws-icon-7 = 8;八
|
||||||
|
ws-icon-8 = 9;九
|
||||||
|
ws-icon-9 = 10;十
|
||||||
|
|
||||||
|
label-focused = %icon%
|
||||||
label-focused-background = ${colors.green}
|
label-focused-background = ${colors.green}
|
||||||
label-focused-padding = 1
|
label-focused-padding = 1
|
||||||
|
|
||||||
label-unfocused = %index%
|
label-unfocused = %icon%
|
||||||
label-unfocused-padding = 1
|
label-unfocused-padding = 1
|
||||||
|
|
||||||
label-visible = %index%
|
label-visible = %icon%
|
||||||
label-visible-padding = 1
|
label-visible-padding = 1
|
||||||
|
|
||||||
label-urgent = %index%
|
label-urgent = %icon%
|
||||||
label-urgent-overline = ${colors.red}
|
label-urgent-overline = ${colors.red}
|
||||||
label-urgent-padding = 1
|
label-urgent-padding = 1
|
||||||
|
|
||||||
@@ -67,7 +82,7 @@ date = %a, %d %b
|
|||||||
[module/time]
|
[module/time]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
interval = 1.0
|
interval = 1.0
|
||||||
date = %I:%M %p
|
date = %H:%M
|
||||||
|
|
||||||
[module/pulseaudio]
|
[module/pulseaudio]
|
||||||
type = internal/pulseaudio
|
type = internal/pulseaudio
|
||||||
@@ -93,23 +108,17 @@ content-padding = 1
|
|||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
battery = BAT0
|
battery = BAT1
|
||||||
adapter = ADP1
|
adapter = ADP1
|
||||||
time-format = %H:%M
|
time-format = %H:%M
|
||||||
|
|
||||||
# charging
|
# charging
|
||||||
format-charging = <animation-charging> <label-charging>
|
format-charging = <ramp-capacity> <label-charging>
|
||||||
label-charging = %percentage% - %time%
|
label-charging = %percentage%%
|
||||||
animation-charging-0 =
|
|
||||||
animation-charging-1 =
|
|
||||||
animation-charging-2 =
|
|
||||||
animation-charging-3 =
|
|
||||||
animation-charging-4 =
|
|
||||||
animation-charging-framerate = 750
|
|
||||||
|
|
||||||
# discharging
|
# discharging
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
label-discharging = %percentage%
|
label-discharging = %percentage%% - %time%
|
||||||
ramp-capacity-0 =
|
ramp-capacity-0 =
|
||||||
ramp-capacity-1 =
|
ramp-capacity-1 =
|
||||||
ramp-capacity-2 =
|
ramp-capacity-2 =
|
||||||
@@ -117,11 +126,19 @@ ramp-capacity-3 =
|
|||||||
ramp-capacity-4 =
|
ramp-capacity-4 =
|
||||||
|
|
||||||
# full
|
# full
|
||||||
label-full = 100
|
label-full = 100%
|
||||||
|
|
||||||
|
[module/conservation]
|
||||||
|
type = custom/script
|
||||||
|
exec = cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
|
||||||
|
click-left = alacritty --command ~/dots/scripts/conservation_mode.sh
|
||||||
|
format = <label>
|
||||||
|
label = %output%
|
||||||
|
tail = true
|
||||||
|
|
||||||
[module/backlight]
|
[module/backlight]
|
||||||
type = internal/backlight
|
type = internal/backlight
|
||||||
card = amdgpu_bl0
|
card = intel_backlight
|
||||||
|
|
||||||
format = <ramp> <label>
|
format = <ramp> <label>
|
||||||
label = %percentage%
|
label = %percentage%
|
||||||
@@ -131,8 +148,7 @@ ramp-1 =
|
|||||||
|
|
||||||
[module/polywins]
|
[module/polywins]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = /home/marc/dots/scripts/polywins.sh 2>/dev/null
|
exec = ~/dots/scripts/polywins.sh 2>/dev/null
|
||||||
format = <label>
|
format = <label>
|
||||||
label = %output%
|
label = %output%
|
||||||
label-padding = 1
|
|
||||||
tail = true
|
tail = true
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
rofi.modi: drun
|
|
||||||
rofi.theme: ~/.config/rofi/light.rasi
|
|
||||||
@@ -7,7 +7,7 @@ configuration {
|
|||||||
bw: 0;
|
bw: 0;
|
||||||
terminal: "alacritty";
|
terminal: "alacritty";
|
||||||
sidebar-mode: false;
|
sidebar-mode: false;
|
||||||
font: "JuliaMono 12";
|
font: "JuliaMono 20";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ configuration {
|
|||||||
|
|
||||||
* {
|
* {
|
||||||
background-color: rgba(0, 0, 0, 0);
|
background-color: rgba(0, 0, 0, 0);
|
||||||
font: "JuliaMono 10";
|
font: "JuliaMono 18";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ window {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 30;
|
padding: 30;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
height: 50%;
|
height: 45%;
|
||||||
transparency: "real";
|
transparency: "real";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ mainbox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
listview {
|
listview {
|
||||||
columns: 3;
|
columns: 2;
|
||||||
lines: 3;
|
lines: 3;
|
||||||
padding: 8;
|
padding: 8;
|
||||||
spacing: 0;
|
spacing: 0;
|
||||||
@@ -65,13 +65,7 @@ element selected {
|
|||||||
}
|
}
|
||||||
|
|
||||||
element-icon {
|
element-icon {
|
||||||
size: 60;
|
size: 100;
|
||||||
horizontal-align: 0.5;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-icon {
|
|
||||||
size: 40;
|
|
||||||
horizontal-align: 0.5;
|
horizontal-align: 0.5;
|
||||||
vertical-align: 0.5;
|
vertical-align: 0.5;
|
||||||
}
|
}
|
||||||
@@ -91,12 +85,12 @@ inputbar {
|
|||||||
prompt {
|
prompt {
|
||||||
enabled: true;
|
enabled: true;
|
||||||
padding: 0.5% 1% 0% 1%;
|
padding: 0.5% 1% 0% 1%;
|
||||||
font: "JuliaMono 12";
|
font: "JuliaMono 20";
|
||||||
}
|
}
|
||||||
|
|
||||||
entry {
|
entry {
|
||||||
text-color: @txt;
|
text-color: @txt;
|
||||||
padding: 8 12 8 12;
|
padding: 8 12 8 12;
|
||||||
font: "JuliaMono 12";
|
font: "JuliaMono 20";
|
||||||
margin: 0% 0% 0% 0%;
|
margin: 0% 0% 0% 0%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
xrdb -merge $HOME/.Xresources
|
xrdb -merge $HOME/.Xresources
|
||||||
|
|
||||||
# map CAPS to ~
|
# map CAPS to ~
|
||||||
|
setxkbmap eu
|
||||||
setxkbmap -option caps:none
|
setxkbmap -option caps:none
|
||||||
xmodmap -e "keycode 66 = grave asciitilde"
|
xmodmap -e "keycode 66 = grave asciitilde"
|
||||||
xmodmap -e "keycode 49 = Escape"
|
xmodmap -e "keycode 49 = Escape"
|
||||||
setxkbmap eu
|
|
||||||
|
|
||||||
# energy options
|
# energy options
|
||||||
xset s off
|
xset s off
|
||||||
@@ -21,7 +21,7 @@ xset r rate 300 50
|
|||||||
xset m 1
|
xset m 1
|
||||||
|
|
||||||
# path
|
# path
|
||||||
export PATH=$PATH:$HOME/scripts:$HOME/.cargo/bin:$HOME/.cabal/bin:$HOME/.ghcup/bin:$HOME/.local/bin
|
export PATH=$PATH:$HOME/dots/scripts:$HOME/.cargo/bin:$HOME/.cabal/bin:$HOME/.ghcup/bin:$HOME/.local/bin
|
||||||
|
|
||||||
# editor
|
# editor
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
|
|||||||
@@ -118,8 +118,8 @@ export FZF_DEFAULT_OPTS='
|
|||||||
--layout=reverse
|
--layout=reverse
|
||||||
--bind=tab:down
|
--bind=tab:down
|
||||||
--bind=btab:up
|
--bind=btab:up
|
||||||
--color=fg:#575f66,bg:#fafafa,hl:#458588
|
--color=fg:#575f66,bg:#ffffff,hl:#a6cc70
|
||||||
--color=fg+:#575f66,bg+:#fafafa,hl+:#458588
|
--color=fg+:#575f66,bg+:#ffffff,hl+:#a6cc70
|
||||||
--color=info:#575f66,prompt:#575f66,pointer:#575f66
|
--color=info:#575f66,prompt:#575f66,pointer:#575f66
|
||||||
--color=marker:#575f66,spinner:#575f66,header:#575f66'
|
--color=marker:#575f66,spinner:#575f66,header:#575f66'
|
||||||
|
|
||||||
|
|||||||
BIN
screen.png
Normal file
BIN
screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 223 KiB |
11
scripts/conservation_mode.sh
Executable file
11
scripts/conservation_mode.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
status=`cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode`
|
||||||
|
|
||||||
|
if [[ $status == 1 ]]; then
|
||||||
|
notify-send -i /usr/share/icons/Papirus/48x48/devices/battery.svg "Conservation Mode" "Disabling conservation mode"
|
||||||
|
echo 0 | sudo tee /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode >/dev/null
|
||||||
|
|
||||||
|
elif [[ $status == 0 ]]; then
|
||||||
|
notify-send -i /usr/share/icons/Papirus/48x48/devices/battery.svg "Conservation Mode" "Enabling conservation mode"
|
||||||
|
echo 1 | sudo tee /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode >/dev/null
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user