update:mango settings
This commit is contained in:
@@ -17,6 +17,7 @@ wl-clip-persist --clipboard regular --reconnect-tries 0 &
|
||||
wl-paste --type text --watch cliphist store &
|
||||
|
||||
gsettings set org.gnome.desktop.interface gtk-theme 'tokyonight-dark'
|
||||
gsettings set org.gnome.desktop.interface cursor-theme 'catppuccin-mocha-dark-cursors'
|
||||
gsettings set org.gnome.desktop.interface icon-theme 'catppuccin-mocha'
|
||||
gsettings set org.gnome.desktop.interface font-name 'Geist 11'
|
||||
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
|
||||
class AMDVideo:
|
||||
_brightness_filepath: Path = Path("/sys/class/backlight/amdgpu_bl1/brightness")
|
||||
_max_brightness_filepath: Path = Path("/sys/class/backlight/amdgpu_bl1/max_brightness")
|
||||
|
||||
brightness: int|None
|
||||
max_brightness: int|None
|
||||
|
||||
def __init__(self):
|
||||
self.brightness = self._get_file_int_value(self._brightness_filepath)
|
||||
self.max_brightness = self._get_file_int_value(self._max_brightness_filepath)
|
||||
|
||||
def _get_file_int_value(self, filepath: Path) -> int:
|
||||
with filepath.open("r", encoding="utf-8") as f:
|
||||
return int(f.read().strip())
|
||||
|
||||
def _update_file_value(self, filepath: Path, value) -> None:
|
||||
with filepath.open("w+") as f:
|
||||
f.write(str(value))
|
||||
|
||||
def increase_brightness(self, inc_by: int|None = None):
|
||||
if not self.max_brightness:
|
||||
print(f"error: max_brightness file not found {self._max_brightness_filepath}")
|
||||
return
|
||||
if not self.brightness:
|
||||
print(f"error: brightness file not found {self._brightness_filepath}")
|
||||
return
|
||||
|
||||
if not inc_by:
|
||||
inc_by = int(self.max_brightness / 15)
|
||||
|
||||
new_val = self.brightness + inc_by
|
||||
if new_val > self.max_brightness:
|
||||
new_val = self.max_brightness
|
||||
|
||||
self._update_file_value(self._brightness_filepath, new_val)
|
||||
|
||||
def decrease_brightness(self, dec_by: int|None = None):
|
||||
if not self.max_brightness:
|
||||
return
|
||||
if not self.brightness:
|
||||
return
|
||||
|
||||
if not dec_by:
|
||||
dec_by = int(self.max_brightness / 15)
|
||||
|
||||
new_val = self.brightness - dec_by
|
||||
lowest_brightness = int(self.max_brightness * 0.05)
|
||||
if new_val < lowest_brightness:
|
||||
new_val = lowest_brightness
|
||||
|
||||
self._update_file_value(self._brightness_filepath, new_val)
|
||||
|
||||
def print_status(self):
|
||||
brightness = self._get_file_int_value(self._brightness_filepath)
|
||||
print(f"brightness: {brightness}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) != 2:
|
||||
print("need argument +/-")
|
||||
exit(1)
|
||||
a = AMDVideo()
|
||||
if sys.argv[1] == "+":
|
||||
a.increase_brightness()
|
||||
if sys.argv[1] == "-":
|
||||
a.decrease_brightness()
|
||||
if sys.argv[1] == "status":
|
||||
a.print_status()
|
||||
|
||||
#
|
||||
# command = ""
|
||||
#
|
||||
# result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
||||
@@ -1,10 +1,11 @@
|
||||
# misc env
|
||||
env=XCURSOR_SIZE,24
|
||||
env=XCURSOR_THEME,catppuccin-mocha-dark-cursors
|
||||
env=GTK_THEME,tokyonight-dark
|
||||
env=QT_STYLE_OVERRIDE,gtk3
|
||||
|
||||
# fcitx5 im
|
||||
env=GTK_IM_MODULE,fcitx
|
||||
# env=GTK_IM_MODULE,fcitx
|
||||
env=QT_IM_MODULE,fcitx
|
||||
env=XMODIFIERS,@im=fcitx
|
||||
env=INPUT_METHOD,fcitx
|
||||
|
||||
@@ -91,15 +91,15 @@ bind=Ctrl,9,view,9,0
|
||||
# tag: move client to the tag and focus it
|
||||
# tagsilent: move client to the tag and not focus it
|
||||
# bind=Alt,1,tagsilent,1
|
||||
bind=Alt,1,tag,1,0
|
||||
bind=Alt,2,tag,2,0
|
||||
bind=Alt,3,tag,3,0
|
||||
bind=Alt,4,tag,4,0
|
||||
bind=Alt,5,tag,5,0
|
||||
bind=Alt,6,tag,6,0
|
||||
bind=Alt,7,tag,7,0
|
||||
bind=Alt,8,tag,8,0
|
||||
bind=Alt,9,tag,9,0
|
||||
bind=Alt,1,tagsilent,1,0
|
||||
bind=Alt,2,tagsilent,2,0
|
||||
bind=Alt,3,tagsilent,3,0
|
||||
bind=Alt,4,tagsilent,4,0
|
||||
bind=Alt,5,tagsilent,5,0
|
||||
bind=Alt,6,tagsilent,6,0
|
||||
bind=Alt,7,tagsilent,7,0
|
||||
bind=Alt,8,tagsilent,8,0
|
||||
bind=Alt,9,tagsilent,9,0
|
||||
|
||||
# window monitor shift
|
||||
bind=ALT+SHIFT,Left,tagmon,left
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
# xprop | grep WM_CLASS and click on window to see it's class
|
||||
# you can use mmsg -g to see all windows opened
|
||||
# you can use mmsg -e to get the last open layer name
|
||||
# check appid/title:
|
||||
# env GDK_BACKEND=x11 thunar &
|
||||
# sleep 1
|
||||
# mmsg -g | grep -i thunar
|
||||
###
|
||||
# layout support:
|
||||
# tile,scroller,grid,deck,monocle,center_tile,vertical_tile,vertical_scroller
|
||||
@@ -31,7 +26,7 @@ layerrule=noblur:1,layer_name:selection
|
||||
|
||||
windowrule=isfloating:1,isoverlay:1,appid:mpv
|
||||
|
||||
windowrule=isfloating:1,isoverlay:1,appid:Thunar
|
||||
windowrule=isfloating:1,isoverlay:1,appid:thunar
|
||||
|
||||
windowrule=blur:1,unfocused_opacity:1,focused_opacity:0.95,appid:com.mitchellh.ghostty
|
||||
|
||||
|
||||
Reference in New Issue
Block a user