updated backlight control and picom + related

This commit is contained in:
Solomon Laing 2022-07-13 00:27:30 +09:30
parent 59295458e6
commit 574592a55b
2 changed files with 79 additions and 3 deletions

76
.config/picom/picom.conf Normal file
View File

@ -0,0 +1,76 @@
#################################
# Shadows #
#################################
shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-exclude = [
"name = 'Notification'",
"class_g = 'Conky'",
"class_g ?= 'Notify-osd'",
"class_g = 'Cairo-clock'",
"_GTK_FRAME_EXTENTS@:c"
];
#################################
# Fading #
#################################
fading = true;
fade-delta = 4;
no-fading-openclose = false;
fade-in-step = 0.03;
fade-out-step = 0.03;
#################################
# Transparency / Opacity #
#################################
inactive-opacity = 0.8;
frame-opacity = 0.7;
inactive-opacity-override = false;
focus-exclude = [ "class_g = 'Cairo-clock'" ];
#################################
# Corners #
#################################
corner-radius = 4;
rounded-corners-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'"
];
#################################
# Background-Blurring #
#################################
blur-method = "dual_kawase";
blur-background = false;
blur-strength = 6;
blur-kern = "3x3box";
blur-background-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'",
"_GTK_FRAME_EXTENTS@:c"
];
#################################
# General Settings #
#################################
# dbus = true
# daemon = false
backend = "glx";
vsync = true;
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-rounded-corners = true;
detect-client-opacity = true;
log-level = "warn";
wintypes:
{
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
dock = { shadow = false; clip-shadow-above = true; }
dnd = { shadow = false; }
popup_menu = { opacity = 0.8; }
dropdown_menu = { opacity = 0.8; }
};

View File

@ -171,7 +171,7 @@ myWorkspaces :: [String]
-- myWorkspaces = [" 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", " 9 "] -- myWorkspaces = [" 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", " 9 "]
myWorkspaces = ["web", "game", "dev", "doc", "mus", "vid", "sys", "chat", "virt"] myWorkspaces = ["web", "game", "dev", "doc", "mus", "vid", "sys", "chat", "mail"]
myWorkspaceIndices = M.fromList $ zip myWorkspaces [1..] -- (,) == \x y -> (x,y) myWorkspaceIndices = M.fromList $ zip myWorkspaces [1..] -- (,) == \x y -> (x,y)
clickable ws = "<action=xdotool key super+"++show i++">"++ws++"</action>" clickable ws = "<action=xdotool key super+"++show i++">"++ws++"</action>"
@ -381,8 +381,8 @@ myStandardEZKeys =
myLaptopEZKeys :: [(String, X ())] myLaptopEZKeys :: [(String, X ())]
myLaptopEZKeys = myLaptopEZKeys =
--NOTE backlight controls --NOTE backlight controls
[ ("<XF86MonBrightnessUp>", spawn "mod_backlight +10") -- increase backlight brightness by 10 [ ("<XF86MonBrightnessUp>", spawn "mod_backlight up") -- increase backlight brightness by 10
, ("<XF86MonBrightnessDown>", spawn "mod_backlight -10") -- decrease backlight brightness by 10 , ("<XF86MonBrightnessDown>", spawn "mod_backlight down") -- decrease backlight brightness by 10
] ]