aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@gmx.com>2023-07-28 22:13:15 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@gmx.com>2023-07-28 22:13:15 +0200
commit343c4d6d7d5e3b5d6ac8d06e9a61920ebbebde29 (patch)
treeb3b77b26c87e60b3ca0039b2e695708ae93d5205 /config
parentaaeae07107bbbe24f63f5e38766e951d0e19be87 (diff)
refactor(i3/rofi/picom): update wallpaper and use pywal
Diffstat (limited to 'config')
-rw-r--r--config/i3/config105
-rw-r--r--config/picom/picom.conf13
-rw-r--r--config/rofi/applets/shared/colors.rasi2
-rw-r--r--config/rofi/launchers/type-1/shared/colors.rasi2
-rw-r--r--config/rofi/powermenu/type-1/shared/colors.rasi2
5 files changed, 36 insertions, 88 deletions
diff --git a/config/i3/config b/config/i3/config
index 90664f3..a8d65bd 100644
--- a/config/i3/config
+++ b/config/i3/config
@@ -2,6 +2,7 @@ font pango: Noto Sans Regular 10
# set the mod key to the winkey:
set $mod Mod4
+set $wallpaper = ~/Images/wallpapers/sky-like-ghibli.png
#####################
# workspace layout: #
@@ -34,7 +35,7 @@ gaps outer 30
# show window title bars (not officially supported with i3gaps)
#default_border normal
-default_border pixel 0
+default_border pixel 2
# window title alignment
#title_align center
@@ -126,9 +127,9 @@ mode "resize" {
# Pressing up will shrink the window's height.
# Pressing down will grow the window's height.
bindsym j resize shrink width 10 px or 10 ppt
- bindsym k resize grow height 10 px or 10 ppt
- bindsym l resize shrink height 10 px or 10 ppt
- bindsym ntilde resize grow width 10 px or 10 ppt
+ bindsym i resize grow height 10 px or 10 ppt
+ bindsym k resize shrink height 10 px or 10 ppt
+ bindsym l resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
@@ -154,28 +155,16 @@ bindsym $mod+Return exec alacritty
# kill focused window
bindsym $mod+q kill
-# Lock the system
-# lock with a picture:
-#bindsym $mod+l exec i3lock -i ~/.config/i3/i3-lock-screen.png -p default|win -t
-# lock by blurring the screen:
-bindsym $mod+l exec ~/.config/i3/scripts/blur-lock
-
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to update i3)
bindsym $mod+Shift+r restart
-# keybinding in fancy rofi (automated):
-bindsym $mod+F1 exec ~/.config/i3/scripts/keyhint-2
-# alternative
-# keybinding list in editor:
-# bindsym $mod+F1 exec xed ~/.config/i3/keybindings
-
bindsym $mod+j focus left
bindsym $mod+k focus down
-bindsym $mod+b focus up
-bindsym $mod+o focus right
+bindsym $mod+i focus up
+bindsym $mod+l focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
@@ -186,8 +175,8 @@ bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
-bindsym $mod+Shift+b move up
-bindsym $mod+Shift+o move right
+bindsym $mod+Shift+i move up
+bindsym $mod+Shift+l move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
@@ -240,16 +229,10 @@ bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
-# Redirect sound to headphones
-bindsym $mod+p exec /usr/local/bin/switch-audio-port
-
## App shortcuts
bindsym $mod+w exec /usr/bin/vivaldi-stable
bindsym $mod+n exec /usr/bin/thunar
-# Power Profiles menu switcher (rofi)
-bindsym $mod+Shift+p exec ~/.config/i3/scripts/power-profiles
-
##########################################
# configuration for workspace behaviour: #
##########################################
@@ -289,42 +272,11 @@ assign [class="Ymuse"] $ws10
assign [class="jetbrains-phpstorm"] $ws1
assign [class="jetbrains-goland"] $ws1
assign [class="jetbrains-idea"] $ws1
-assign [class="jetbrains-clion"] $ws1
# automatic set focus new window if it opens on another workspace then the current:
for_window [class=Xfce4-terminal] focus
-for_window [class=(?i)firefox] focus
+for_window [class=Vivaldi-stable] focus
for_window [class=Thunar] focus
-for_window [class=Thunderbird] focus
-for_window [class=TelegramDesktop] focus
-
-##############
-# compositor #
-##############
-
-# transparency
-# uncomment one of them to be used (picom package is installed per default)
-# options could need changes, related to used GPU and drivers.
-# to find the right setting consult the archwiki or ask at the forum.
-#
-# xcompmgr: https://wiki.archlinux.org/title/Xcompmgr
-# manpage: https://man.archlinux.org/man/xcompmgr.1.en
-#exec --no-startup-id xcompmgr -C -n &
-# or an more specialized config like this:
-#exec --no-startup-id xcompmgr -c -C -t-5 -l-5 -r4.2 -o.55 &
-#
-# or:
-#
-# picom: https://wiki.archlinux.org/title/Picom
-# manpage: https://man.archlinux.org/man/picom.1.en
-# The default configuration is available in /etc/xdg/picom.conf
-# For modifications, it can be copied to ~/.config/picom/picom.conf or ~/.config/picom.conf
-#
-# using default config
-#exec_always --no-startup-id picom -b
-#
-# for custom config:
-#exec_always --no-startup-id picom --config ~/.config/picom.conf
#############################################
# autostart applications/services on login: #
@@ -359,7 +311,7 @@ exec --no-startup-id dex --autostart --environment i3
# set wallpaper
#exec --no-startup-id sleep 2 && nitrogen --restore
-exec_always --no-startup-id feh --bg-fill ~/Images/wallpapers/tlou2-ellie-guitar-tree.jpg
+exec_always --no-startup-id feh --bg-fill $wallpaper
# set powersavings for display:
exec --no-startup-id xset s 480 dpms 600 600 600
@@ -409,23 +361,6 @@ exec --no-startup-id dbus-launch dunst --config ~/.config/dunst/dunstrc
# floating rules #
##################
-# set floating (nontiling) for apps needing it
-for_window [class="Yad" instance="yad"] floating enable
-for_window [class="Galculator" instance="galculator"] floating enable
-for_window [class="Blueberry.py" instance="blueberry.py"] floating enable
-
-# set floating (nontiling) for special apps
-for_window [class="Xsane" instance="xsane"] floating enable
-for_window [class="Pavucontrol" instance="pavucontrol"] floating enable
-for_window [class="qt5ct" instance="qt5ct"] floating enable
-for_window [class="Blueberry.py" instance="blueberry.py"] floating enable
-for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enable
-for_window [class="Pamac-manager"] floating enable
-for_window [window_role="About"] floating enable
-
-# set border of floating window
-for_window [class="urxvt"] border pixel 1
-
# set size of floating window
#for_window [window_role="(?i)GtkFileChooserDialog"] resize set 640 480 #to set size of file choose dialog
#for_window [class=".*"] resize set 640 480 #to change size of all floating windows
@@ -450,12 +385,19 @@ set $grey #b0b5bd
set $mediumgrey #8b8b8b
set $yellowbrown #e1b700
+set_from_resource $fg i3wm.color7 #f0f0f0
+set_from_resource $bg i3wm.color4 #f0f0f0
+set_from_resource $nbg i3wm.color1 #f0f0f0
+
# define colors for windows:
-#class border bground text indicator child_border
-client.focused $lightblue $darkblue $white $mediumgrey $mediumgrey
-client.unfocused $darkblue $darkblue $grey $darkgrey $darkgrey
-client.focused_inactive $darkblue $darkblue $grey $black $black
-client.urgent $urgentred $urgentred $white $yellowbrown $yellowbrown
+# class border backgr. text indicator child_border
+client.focused $bg $bg $fg $bg $bg
+client.focused_inactive $bg $bg $fg $bg $bg
+client.unfocused $nbg $bg $fg $bg $nbg
+client.urgent $bg $bg $fg $bg $bg
+client.placeholder $bg $bg $fg $bg $bg
+
+client.background $bg
############################################
# bar settings (input comes from i3blocks) #
@@ -561,6 +503,7 @@ exec_always --no-startup-id sleep 3 && picom --config ~/.config/picom/picom.conf
exec spotify
exec vivaldi-stable
exec flatpak run com.discordapp.Discord
+exec wal -i $wallpaper -n
# Commands for screenshot
# Screenshot
diff --git a/config/picom/picom.conf b/config/picom/picom.conf
index 3f837cc..0d505bc 100644
--- a/config/picom/picom.conf
+++ b/config/picom/picom.conf
@@ -17,11 +17,16 @@ fade-exclude = [
];
## opacity
-active-opacity = 0.8;
-inactive-opacity = 0.4;
+active-opacity = 0.9;
+inactive-opacity = 0.6;
frame-opacity = 0.7;
opacity-rule = [
- "100:name *= 'Minecraft'"
+ "100:name *= 'Minecraft'",
+ "100:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_FULLSCREEN'",
+ "100:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'",
+ "100:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'",
+ "100:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'",
+ "100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'"
];
## other
@@ -41,7 +46,7 @@ wintypes:
{
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; };
};
-corner-radius = 10.0;
+corner-radius = 5.0;
## blur
blur-background = true;
diff --git a/config/rofi/applets/shared/colors.rasi b/config/rofi/applets/shared/colors.rasi
index 3d4dd2d..2d763d2 100644
--- a/config/rofi/applets/shared/colors.rasi
+++ b/config/rofi/applets/shared/colors.rasi
@@ -15,4 +15,4 @@
/* Import color-scheme from `colors` directory */
-@import "~/.config/rofi/colors/navy.rasi"
+@import "~/.config/rofi/colors/lovelace.rasi"
diff --git a/config/rofi/launchers/type-1/shared/colors.rasi b/config/rofi/launchers/type-1/shared/colors.rasi
index 3d4dd2d..2d763d2 100644
--- a/config/rofi/launchers/type-1/shared/colors.rasi
+++ b/config/rofi/launchers/type-1/shared/colors.rasi
@@ -15,4 +15,4 @@
/* Import color-scheme from `colors` directory */
-@import "~/.config/rofi/colors/navy.rasi"
+@import "~/.config/rofi/colors/lovelace.rasi"
diff --git a/config/rofi/powermenu/type-1/shared/colors.rasi b/config/rofi/powermenu/type-1/shared/colors.rasi
index 3d4dd2d..2d763d2 100644
--- a/config/rofi/powermenu/type-1/shared/colors.rasi
+++ b/config/rofi/powermenu/type-1/shared/colors.rasi
@@ -15,4 +15,4 @@
/* Import color-scheme from `colors` directory */
-@import "~/.config/rofi/colors/navy.rasi"
+@import "~/.config/rofi/colors/lovelace.rasi"