add borders to windows, remove dim on infocused windows

This commit is contained in:
horhik 2021-06-07 14:44:23 +03:00
parent 83100caf74
commit ec1cd5a713
16 changed files with 59 additions and 37 deletions

View File

@ -29,7 +29,7 @@
# the top and down respectively.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "350x5-20+40"
geometry = "350x5-785+40"
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
@ -41,7 +41,7 @@
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 30
transparency = 0
# The height of the entire notification. If the height is smaller
# than the font height and padding combined, it will be raised
@ -51,17 +51,17 @@
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 5
separator_height = 10
# Padding between text and separator.
padding = 0
padding = 10
# Horizontal padding.
horizontal_padding = 0
horizontal_padding = 10
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
frame_width = 3
frame_width = 0
# Defines color of the frame around the notification window.
frame_color = "#44475a"
@ -72,7 +72,7 @@
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = frame
separator_color = "#ff000000"
# Sort messages by urgency.
sort = yes
@ -86,7 +86,7 @@
### Text ###
font = Mononoki 12
font = Mononoki 14
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.
@ -163,7 +163,7 @@
icon_position = left
# Scale larger icons down to this size, set to 0 to disable
max_icon_size = 120
max_icon_size = 80
# Paths to default icons.
icon_path = /usr/share/icons/Papirus-Dark/16x16:/usr/share/icons/Papirus/16x16:/home/horhik/Pictures/icons

View File

@ -4,8 +4,8 @@ ShowHidden=false
ShowSizeColumn=true
GeometryX=0
GeometryY=0
GeometryWidth=637
GeometryHeight=520
SortColumn=name
SortOrder=ascending
GeometryWidth=768
GeometryHeight=972
SortColumn=modified
SortOrder=descending
StartupMode=recent

View File

@ -0,0 +1,10 @@
# If a config.py file exists, this file is ignored unless it's explicitly loaded
# via config.load_autoconfig(). For more information, see:
# https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc#loading-autoconfigyml
# DO NOT edit this file by hand, qutebrowser will overwrite it.
# Instead, create a config.py - see :help for details.
config_version: 2
settings:
content.media.audio_capture:
https://vk.com: true

View File

@ -0,0 +1,5 @@
[FileDialog]
history=@Invalid()
lastVisited=file:///home/horhik/Downloads/Telegram Desktop
qtVersion=5.15.2
viewMode=Detail

View File

@ -19,9 +19,11 @@ import XMonad.Util.SpawnOnce
import XMonad.Util.Run
import XMonad.Hooks.ManageDocks
import XMonad.Layout.Gaps
import XMonad.Layout.ToggleLayouts
import XMonad.Util.Themes
import XMonad.Util.EZConfig
import XMonad.Layout.Spacing
import XMonad.Layout.NoBorders
import XMonad.Layout.NoBorders (noBorders, smartBorders)
import XMonad.Layout.Tabbed
import XMonad.Hooks.DynamicLog
import XMonad.Util.Scratchpad
@ -45,7 +47,7 @@ myFocusFollowsMouse :: Bool
myFocusFollowsMouse = True
myClickJustFocuses :: Bool
myClickJustFocuses = False
myBorderWidth = 0
myBorderWidth = 3
superKey = mod4Mask
myModMask = superKey
-- myWorkspaces = ["home 1","web 2","code 3","test 4","tkr 5","task 6","edit 7", "chat 8","book 9"]
@ -228,12 +230,16 @@ myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $
-- The available layouts. Note that each layout is separated by |||,
-- which denotes layout choice.
--
defaultGapSize = 0
defaultGapSize = 7;
defaultGaps = gaps [(U,defaultGapSize), (R,defaultGapSize), (D, defaultGapSize), (L, defaultGapSize)]
defaultSpaces = spacingRaw True (Border 0 0 0 0) True (Border 0 0 0 0) True
defaultSpaces = spacingRaw True (Border 7 7 7 7) True (Border 7 7 7 7) True
spacesAndGaps = defaultSpaces . defaultGaps
myLayout = smartBorders . avoidStruts $ spacesAndGaps $ tiled ||| Mirror tiled ||| Full ||| simpleTabbed
myTabConfig = def { inactiveBorderColor = commentColor
, activeTextColor = selectionColor}
myLayout = smartBorders . avoidStruts
$ spacesAndGaps
$ tiled ||| Mirror tiled ||| noBorders Full ||| simpleTabbed -- tabbed shrinkText (theme kavonAutumnTheme )
where
-- default tiling algorithm partitions the screen into two panes
tiled = Tall nmaster delta ratio
@ -421,6 +427,7 @@ myStartupHook = do
spawnOnce "setxkbmap us,ru &"
spawnOnce "eww daemon"
spawnOnce "nextcloud"
spawnOnce "superProductivity"
spawnOnce "syncthing"
spawnOnce "sh ssh-agent bash ; ssh-add ~/.ssh/arch"
spawnOnce "eval '$(ssh-agent -s)'; ssh-add ~/.ssh/id_rsa"

View File

@ -20,7 +20,6 @@
./modules/hosts.nix
#./modules/picom.nix
./modules/sound.nix
./modules/steam.nix
./modules/zsh.nix
./fonts.nix
@ -115,6 +114,7 @@
wget git vim neovim emacs alacritty xterm zsh tmux stow dunst
# haskellPackages.xmonad haskellPackages.xmonad-contrib haskellPackages.xmonad-utils
haskellPackages.xmobar
tabbed
i3 surf dmenu st qutebrowser
lightdm rofi nitrogen rofi-emoji
mononoki fontmatrix

View File

@ -1 +0,0 @@
horhik@lap.122842:1622363905

View File

@ -1,15 +1,19 @@
{config, pkgs, ...}:
{
programs.dconf.enable = true;
services.gnome.evolution-data-server.enable = true;
services.gnome.gnome-keyring.enable = true;
services.xserver.desktopManager.cde.extraPackages = with pkgs;
options.services.xserver.desktopManager.cde.extraPackages.default ++ [
cde-gtk-theme
yaru-theme
];
environment.etc."xdg/gtk-2.0/gtkrc".text = ''
gtk-theme-name="Yaru"
gtk-theme-name="Yaru-dark"
'';
environment.etc."xdg/gtk-3.0/settings.ini".text = ''
[Settings]
gtk-theme-name=yaru-theme
gtk-theme-name=Yaru-dark
'';
qt5 = {
enable = true;

View File

@ -5,18 +5,21 @@
services.picom.package = pkgs.nur.repos.reedrw.picom-next-ibhagwan;
services.picom.shadow = true;
services.picom.vSync = true;
services.picom.inactiveOpacity = "0.8";
services.picom.inactiveDim = "0.7";
# services.picom.inactiveOpacity = "0.8";
# services.picom.inactiveDim = "0.7";
services.picom.backend = "glx";
services.picom.experimentalBackends = true;
services.picom.opacityRule = [
"80:class_g = 'Zathura'"
"80:class_g = 'TelegramDesktop'"
"80:class_g = 'Discord'"
"80:class_g = 'Emacs'"
"60:class_g = 'Anki'"
"100:class_g = 'keynav'"
"85:class_g = 'Alacritty'"
];
services.picom.shadowExclude = [
"class_g = 'Navigator'"
];
services.picom.extraOptions = ''
#inactive-dim = 0.5;
#active-opacity = 1.0;
@ -31,15 +34,18 @@
background-fixed = false;
};
blur-background-exclude = [
"class_g = 'keynav'"
"class_g = 'keynav'",
"class_g = 'Dunst'",
"class_g = 'Navigator'",
"class_g = 'Firefox'"
];
corner-radius = 0;
corner-radius = 4;
rounded-corners-exclude = [
"window_type = 'dock'",
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_FULLSCREEN'",
"class_g = 'keynav'",
];
round-borders = 0;
round-borders = 4;
round-borders-exclude = [
"class_g = 'keynav'"
];

View File

@ -1,9 +0,0 @@
{config, pkgs, ...}:
{
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
nativeOnly = true;
};
};
programs.steam.enable = true;
}

0
nix/programs/mpv.nix Normal file
View File

View File

0
nix/programs/spotify.nix Normal file
View File

0
nix/programs/vifm.nix Normal file
View File

0
nix/programs/vim.nix Normal file
View File

0
nix/programs/zsh.nix Normal file
View File