From 893d9d0152adb4759b9dca628d816c482edb8280 Mon Sep 17 00:00:00 2001 From: wizawu Date: Wed, 12 Jun 2024 01:10:57 +0800 Subject: [PATCH] Modify awesome/rc.lua --- bin/x | 2 +- dotfiles/bashrc | 1 - etc/xdg/awesome/rc.lua | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/x b/bin/x index 6cc2583..045c203 100755 --- a/bin/x +++ b/bin/x @@ -9,7 +9,7 @@ if [[ "$1" = "-r" ]]; then xinput set-prop 'pointer:MOSART Semi. 2.4G Keyboard Mouse' 'libinput Accel Profile Enabled' 0 1 xinput set-prop 'pointer:MOSART Semi. 2.4G Keyboard Mouse' 'libinput Accel Speed' 0.1 xinput set-prop 'pointer:Razer Razer Viper 8KHz' 'libinput Accel Profile Enabled' 0 1 - xinput set-prop 'pointer:Razer Razer Viper 8KHz' 'libinput Accel Speed' 0.3 + xinput set-prop 'pointer:Razer Razer Viper 8KHz' 'libinput Accel Speed' 0.1 hsetroot -full /usr/share/awesome/themes/default/background.png -clear exit fi diff --git a/dotfiles/bashrc b/dotfiles/bashrc index 42cf727..30644e5 100644 --- a/dotfiles/bashrc +++ b/dotfiles/bashrc @@ -60,7 +60,6 @@ alias psync='rsync -Pz --info=progress2' alias pyfmt='bash -c "isort \$0 && black \$0"' alias randn='shuf -i 1-9223372036854775807 -n 1' alias rm='rm -I' -alias suspend='sudo systemctl suspend' alias tarip='tar --strip-components=1 -x -f' alias tgit="tsocks git" alias timev="/usr/bin/time -v" diff --git a/etc/xdg/awesome/rc.lua b/etc/xdg/awesome/rc.lua index 85ecd9f..b4a282e 100644 --- a/etc/xdg/awesome/rc.lua +++ b/etc/xdg/awesome/rc.lua @@ -104,9 +104,6 @@ myawesomemenu = { mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon }, { "open terminal", terminal }, - -- @wizawu -- - { "refresh", terminal .. " -e x -r" }, - -- @end -- } }) @@ -185,6 +182,7 @@ screen.connect_signal("property::geometry", set_wallpaper) -- @wizawu -- screen.connect_signal("added", awesome.restart) screen.connect_signal("removed", awesome.restart) +awful.spawn("x -r") -- @end -- awful.screen.connect_for_each_screen(function(s)