From df4e1c1a4e442ab90987c12585dabe7688c7762e Mon Sep 17 00:00:00 2001 From: Vylpes Date: Mon, 15 Mar 2021 17:40:12 +0000 Subject: [PATCH 01/86] Initial commit --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..27ef622 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# dotfiles \ No newline at end of file From e31cb35087a5e74b824b0b09aa7860d69c08ecb9 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 15 Mar 2021 18:02:04 +0000 Subject: [PATCH 02/86] Add Config files --- README.md | 38 +- etc/lightdm/lightdm.conf | 163 +++++++++ home/vylpes/.config/alacritty/alacritty.yml | 83 +++++ home/vylpes/.config/nitrogen/bg-saved.cfg | 4 + home/vylpes/.config/nitrogen/nitrogen.cfg | 12 + home/vylpes/.config/xmobar/xmobarrc0 | 31 ++ home/vylpes/.config/xmobar/xmobarrc0.BAK | 31 ++ home/vylpes/.xmonad/xmonad.hs | 373 ++++++++++++++++++++ 8 files changed, 734 insertions(+), 1 deletion(-) create mode 100644 etc/lightdm/lightdm.conf create mode 100644 home/vylpes/.config/alacritty/alacritty.yml create mode 100644 home/vylpes/.config/nitrogen/bg-saved.cfg create mode 100644 home/vylpes/.config/nitrogen/nitrogen.cfg create mode 100644 home/vylpes/.config/xmobar/xmobarrc0 create mode 100644 home/vylpes/.config/xmobar/xmobarrc0.BAK create mode 100644 home/vylpes/.xmonad/xmonad.hs diff --git a/README.md b/README.md index 27ef622..a5a5bd8 100644 --- a/README.md +++ b/README.md @@ -1 +1,37 @@ -# dotfiles \ No newline at end of file +# Vylpes' Dotfiles Repository + +This repository includes all my linux configuration files + +## Package List + +This is a list of the packages I use + +- alacritty +- alsa-firmware +- alsa-lib +- alsa-plugins +- alsa-utils +- cmatrix +- cups +- discord +- dmenu +- dolphin-emu +- gimp +- lightdm +- lightdm-webkit2-greeter +- networkmanager +- nitrogen +- nodejs +- npm +- nvidia +- openssh +- picom +- pulseaudio +- qemu +- retroarch +- sudo +- vim +- x11 +- xmonad +- xmobar +- zsh diff --git a/etc/lightdm/lightdm.conf b/etc/lightdm/lightdm.conf new file mode 100644 index 0000000..f089f90 --- /dev/null +++ b/etc/lightdm/lightdm.conf @@ -0,0 +1,163 @@ +# +# General configuration +# +# start-default-seat = True to always start one seat if none are defined in the configuration +# greeter-user = User to run greeter as +# minimum-display-number = Minimum display number to use for X servers +# minimum-vt = First VT to run displays on +# lock-memory = True to prevent memory from being paged to disk +# user-authority-in-system-dir = True if session authority should be in the system location +# guest-account-script = Script to be run to setup guest account +# logind-check-graphical = True to on start seats that are marked as graphical by logind +# log-directory = Directory to log information to +# run-directory = Directory to put running state in +# cache-directory = Directory to cache to +# sessions-directory = Directory to find sessions +# remote-sessions-directory = Directory to find remote sessions +# greeters-directory = Directory to find greeters +# backup-logs = True to move add a .old suffix to old log files when opening new ones +# dbus-service = True if LightDM provides a D-Bus service to control it +# +[LightDM] +#start-default-seat=true +#greeter-user=lightdm +#minimum-display-number=0 +#minimum-vt=7 # Setting this to a value < 7 implies security issues, see FS#46799 +#lock-memory=true +#user-authority-in-system-dir=false +#guest-account-script=guest-account +#logind-check-graphical=false +#log-directory=/var/log/lightdm +run-directory=/run/lightdm +#cache-directory=/var/cache/lightdm +#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions +#remote-sessions-directory=/usr/share/lightdm/remote-sessions +#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters +#backup-logs=true +#dbus-service=true + +# +# Seat configuration +# +# Seat configuration is matched against the seat name glob in the section, for example: +# [Seat:*] matches all seats and is applied first. +# [Seat:seat0] matches the seat named "seat0". +# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client". +# +# type = Seat type (local, xremote) +# pam-service = PAM service to use for login +# pam-autologin-service = PAM service to use for autologin +# pam-greeter-service = PAM service to use for greeters +# xserver-command = X server command to run (can also contain arguments e.g. X -special-option) +# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option) +# xserver-config = Config file to pass to X server +# xserver-layout = Layout to pass to X server +# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server +# xserver-share = True if the X server is shared for both greeter and session +# xserver-hostname = Hostname of X server (only for type=xremote) +# xserver-display-number = Display number of X server (only for type=xremote) +# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true) +# xdmcp-port = XDMCP UDP/IP port to communicate on +# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf) +# greeter-session = Session to load for greeter +# greeter-hide-users = True to hide the user list +# greeter-allow-guest = True if the greeter should show a guest login option +# greeter-show-manual-login = True if the greeter should offer a manual login option +# greeter-show-remote-login = True if the greeter should offer a remote login option +# user-session = Session to load for users +# allow-user-switching = True if allowed to switch users +# allow-guest = True if guest login is allowed +# guest-session = Session to load for guests (overrides user-session) +# session-wrapper = Wrapper script to run session with +# greeter-wrapper = Wrapper script to run greeter with +# guest-wrapper = Wrapper script to run guest sessions with +# display-setup-script = Script to run when starting a greeter session (runs as root) +# display-stopped-script = Script to run after stopping the display server (runs as root) +# greeter-setup-script = Script to run when starting a greeter (runs as root) +# session-setup-script = Script to run when starting a user session (runs as root) +# session-cleanup-script = Script to run when quitting a user session (runs as root) +# autologin-guest = True to log in as guest by default +# autologin-user = User to log in with by default (overrides autologin-guest) +# autologin-user-timeout = Number of seconds to wait before loading default user +# autologin-session = Session to load for automatic login (overrides user-session) +# autologin-in-background = True if autologin session should not be immediately activated +# exit-on-failure = True if the daemon should exit if this seat fails +# +[Seat:*] +#type=local +#pam-service=lightdm +#pam-autologin-service=lightdm-autologin +#pam-greeter-service=lightdm-greeter +#xserver-command=X +#xmir-command=Xmir +#xserver-config= +#xserver-layout= +#xserver-allow-tcp=false +#xserver-share=true +#xserver-hostname= +#xserver-display-number= +#xdmcp-manager= +#xdmcp-port=177 +#xdmcp-key= +greeter-session=lightdm-webkit2-greeter +#greeter-hide-users=false +#greeter-allow-guest=true +#greeter-show-manual-login=false +#greeter-show-remote-login=true +user-session=xmonad +#allow-user-switching=true +#allow-guest=true +#guest-session= +session-wrapper=/etc/lightdm/Xsession +#greeter-wrapper= +#guest-wrapper= +#display-setup-script= +#display-stopped-script= +#greeter-setup-script= +#session-setup-script= +#session-cleanup-script= +#autologin-guest=false +#autologin-user= +#autologin-user-timeout=0 +#autologin-in-background=false +#autologin-session= +#exit-on-failure=false + +# +# XDMCP Server configuration +# +# enabled = True if XDMCP connections should be allowed +# port = UDP/IP port to listen for connections on +# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present) +# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf) +# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset) +# +# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively +# it can be a word and the first 7 characters are used as the key. +# +[XDMCPServer] +#enabled=false +#port=177 +#listen-address= +#key= +#hostname= + +# +# VNC Server configuration +# +# enabled = True if VNC connections should be allowed +# command = Command to run Xvnc server with +# port = TCP/IP port to listen for connections on +# listen-address = Host/address to listen for VNC connections (use all addresses if not present) +# width = Width of display to use +# height = Height of display to use +# depth = Color depth of display to use +# +[VNCServer] +#enabled=false +#command=Xvnc +#port=5900 +#listen-address= +#width=1024 +#height=768 +#depth=8 diff --git a/home/vylpes/.config/alacritty/alacritty.yml b/home/vylpes/.config/alacritty/alacritty.yml new file mode 100644 index 0000000..b89cfbe --- /dev/null +++ b/home/vylpes/.config/alacritty/alacritty.yml @@ -0,0 +1,83 @@ +env: + TERM: xterm-256color + +window: + padding: + x: 6 + y: 6 + + title: Alacritty + + class: + instance: Alacritty + general: Alacritty + +scrolling: + history: 5000 + +font: + normal: + family: Hack + style: Regular + + bold: + family: Hack + style: Bold + + italic: + family: Hack + style: Italic + + bold_italic: + family: Hack + style: Bold Italic + + size: 11.0 + + offset: + x: 0 + y: 1 + +draw_bold_text_with_bright_colors: true + +colors: + primary: + background: '0x282c34' + foreground: '0xbbc2cf' + + selection: + text: '0xbbc2cf' + background: '0x282c34' + + normal: + black: '0x1c1f24' + red: '0xff6c6b' + green: '0x98be65' + yellow: '0xda8548' + blue: '0x51afef' + magenta: '0xc678dd' + cyan: '0x5699af' + white: '0x202338' + + bright: + black: '0x5b6268' + red: '0xda8548' + green: '0x4db5bd' + yellow: '0xecbe7b' + blue: '0x3071db' + magenta: '0xa9a1e1' + cyan: '0x46d9ff' + white: '0xdfdfdf' + +background_opacity: 0.75 + +key_bindings: + - { key: V, mods: Control|Shift, action: Paste } + - { key: C, mods: Control|Shift, action: Copy } + - { key: PageUp, mods: Shift, action: ScrollPageUp } + - { key: PageDown, mods: Shift, action: ScrollPageDown } + - { key: Home, mods: Shift, action: ScrollToTop } + - { key: End, mods: Shift, action: ScrollToBottom } + +shell: + program: /bin/zsh diff --git a/home/vylpes/.config/nitrogen/bg-saved.cfg b/home/vylpes/.config/nitrogen/bg-saved.cfg new file mode 100644 index 0000000..ee0bc56 --- /dev/null +++ b/home/vylpes/.config/nitrogen/bg-saved.cfg @@ -0,0 +1,4 @@ +[xin_-1] +file=/home/vylpes/Pictures/Wallpapers/wmf4pf98d4l61.png +mode=0 +bgcolor=#000000 diff --git a/home/vylpes/.config/nitrogen/nitrogen.cfg b/home/vylpes/.config/nitrogen/nitrogen.cfg new file mode 100644 index 0000000..7bd7963 --- /dev/null +++ b/home/vylpes/.config/nitrogen/nitrogen.cfg @@ -0,0 +1,12 @@ +[geometry] +posx=0 +posy=30 +sizex=3836 +sizey=2126 + +[nitrogen] +view=icon +recurse=true +sort=alpha +icon_caps=false +dirs=/home/vylpes/Pictures/Wallpapers;/usr/share/backgrounds/gnome; diff --git a/home/vylpes/.config/xmobar/xmobarrc0 b/home/vylpes/.config/xmobar/xmobarrc0 new file mode 100644 index 0000000..5eab6a0 --- /dev/null +++ b/home/vylpes/.config/xmobar/xmobarrc0 @@ -0,0 +1,31 @@ +Config { font = "xft:hack:pixelsize=30:antialias=true:hinting=true" + , additionalFonts = [] + , borderColor = "black" + , border = TopB + , bgColor = "black" + , fgColor = "grey" + , alpha = 255 + , position = Static { xpos = 0, ypos = 0, width = 3940, height = 30 } + , textOffset = -1 + , iconOffset = -1 + , lowerOnStart = True + , pickBroadest = False + , persistent = True + , hideOnStart = False + , iconRoot = "/home/vylpes/.xmonad/xpm" + , allDesktops = False + , overrideRedirect = True + , commands = [ Run Network "enp24s0" ["-t", "rx kb tx kb"] 10 + , Run Cpu ["-t", "cpu %", "-L","3","-H","50", + "--normal","green","--high","red"] 10 + , Run Memory ["-t","mem %"] 10 + , Run Com "uname" ["-s","-r"] "" 36000 + , Run Date "%a %_d %b %Y %H:%M" "date" 10 + , Run DiskU [("/", "ssd free"),("/home", "| hdd free")] [] 10 + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = "%cpu% | %memory% | %enp24s0% | %disku% }\ + \{ %date% | %uname% | %UnsafeStdinReader%" + } diff --git a/home/vylpes/.config/xmobar/xmobarrc0.BAK b/home/vylpes/.config/xmobar/xmobarrc0.BAK new file mode 100644 index 0000000..e4a86d1 --- /dev/null +++ b/home/vylpes/.config/xmobar/xmobarrc0.BAK @@ -0,0 +1,31 @@ +Config { font = "xft:hack:pixelsize=24:antialias=true:hinting=true" + , additionalFonts = [] + , borderColor = "black" + , border = TopB + , bgColor = "black" + , fgColor = "grey" + , alpha = 255 + , position = Static { xpos = 0, ypos = 0, width = 3840, height = 32 } + , textOffset = -1 + , iconOffset = -1 + , lowerOnStart = True + , pickBroadest = False + , persistent = True + , hideOnStart = False + , iconRoot = "/home/vylpes/.xmonad/xpm" + , allDesktops = False + , overrideRedirect = True + , commands = [ Run Network "enp24s0" ["-t", "rx kb tx kb"] 10 + , Run Cpu ["-t", "cpu %", "-L","3","-H","50", + "--normal","green","--high","red"] 10 + , Run Memory ["-t","mem %"] 10 + , Run Com "uname" ["-s","-r"] "" 36000 + , Run Date "%a %_d %b %Y %H:%M" "date" 10 + , Run DiskU [("/", "hdd free")] [] 10 + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = "%cpu% | %memory% | %enp24s0% | %disku% }\ + \{ %date% | %uname% | %UnsafeStdinReader%" + } diff --git a/home/vylpes/.xmonad/xmonad.hs b/home/vylpes/.xmonad/xmonad.hs new file mode 100644 index 0000000..9ec0e9b --- /dev/null +++ b/home/vylpes/.xmonad/xmonad.hs @@ -0,0 +1,373 @@ +-- IMPORTS + +import XMonad +import Data.Monoid +import System.Exit +import XMonad.Util.SpawnOnce +import XMonad.Util.Run +import XMonad.Hooks.ManageDocks +import XMonad.Hooks.WorkspaceHistory +import XMonad.Hooks.DynamicLog +import XMonad.Actions.MouseResize +import Data.Map (fromList) +import Data.Monoid (mappend) +import XMonad.Layout.Grid +import XMonad.Layout.WindowArranger +import XMonad.Layout.MultiToggle +import XMonad.Hooks.ManageHelpers + +import qualified XMonad.StackSet as W +import qualified Data.Map as M +import qualified XMonad.Layout.ToggleLayouts as T + +-- The preferred terminal program, which is used in a binding below and by +-- certain contrib modules. +-- +myTerminal = "alacritty" + +-- Whether focus follows the mouse pointer. +myFocusFollowsMouse :: Bool +myFocusFollowsMouse = True + +-- Whether clicking on a window to focus also passes the click to the window +myClickJustFocuses :: Bool +myClickJustFocuses = False + +-- Width of the window border in pixels. +-- +myBorderWidth = 2 + +windowCount :: X (Maybe String) +windowCount = gets $ Just . show . length . W.integrate' . W.stack . W.workspace . W.current . windowset + +-- modMask lets you specify which modkey you want to use. The default +-- is mod1Mask ("left alt"). You may also consider using mod3Mask +-- ("right alt"), which does not conflict with emacs keybindings. The +-- "windows key" is usually mod4Mask. +-- +myModMask = mod4Mask + +-- The default number of workspaces (virtual screens) and their names. +-- By default we use numeric strings, but any string may be used as a +-- workspace name. The number of workspaces is determined by the length +-- of this list. +-- +-- A tagging example: +-- +-- > workspaces = ["web", "irc", "code" ] ++ map show [4..9] +-- +myWorkspaces = ["1","2","3","4","5","6","7","8","9"] + +-- Border colors for unfocused and focused windows, respectively. +-- +myNormalBorderColor = "#222222" +myFocusedBorderColor = "#dddddd" + +------------------------------------------------------------------------ +-- Key bindings. Add, modify or remove key bindings here. +-- +myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $ + + -- launch a terminal + [ ((modm .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf) + + -- launch dmenu +-- , ((modm, xK_p ), spawn "sh ~/.scripts/dmenu_fix") + , ((modm, xK_p ), spawn "dmenu_run") + + -- launch firefox + , ((modm .|. shiftMask, xK_b ), spawn "firefox") + + -- launch flameshot + , ((modm .|. shiftMask, xK_F3 ), spawn "flameshot full -c -p ~/Pictures/captures") + , ((modm .|. shiftMask, xK_F4 ), spawn "flameshot gui -p ~/Pictures/captures") + + -- launch gmrun + , ((modm .|. shiftMask, xK_p ), spawn "gmrun") + + -- close focused window + , ((modm .|. shiftMask, xK_c ), kill) + + -- Rotate through the available layout algorithms + , ((modm, xK_space ), sendMessage NextLayout) + + -- Reset the layouts on the current workspace to default + , ((modm .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf) + + -- Resize viewed windows to the correct size + , ((modm, xK_n ), refresh) + + -- Move focus to the next window + , ((modm, xK_Tab ), windows W.focusDown) + + -- Move focus to the next window + , ((modm, xK_j ), windows W.focusDown) + + -- Move focus to the previous window + , ((modm, xK_k ), windows W.focusUp ) + + -- Move focus to the master window + , ((modm, xK_m ), windows W.focusMaster ) + + -- Swap the focused window and the master window + , ((modm, xK_Return), windows W.swapMaster) + + -- Swap the focused window with the next window + , ((modm .|. shiftMask, xK_j ), windows W.swapDown ) + + -- Swap the focused window with the previous window + , ((modm .|. shiftMask, xK_k ), windows W.swapUp ) + + -- Shrink the master area + , ((modm, xK_h ), sendMessage Shrink) + + -- Expand the master area + , ((modm, xK_l ), sendMessage Expand) + + -- Lock the screen + , ((modm .|. shiftMask, xK_z ), spawn "dm-tool lock") + + -- Push window back into tiling + , ((modm, xK_t ), withFocused $ windows . W.sink) + + -- Increment the number of windows in the master area + , ((modm , xK_comma ), sendMessage (IncMasterN 1)) + + -- Deincrement the number of windows in the master area + , ((modm , xK_period), sendMessage (IncMasterN (-1))) + + -- Toggle the status bar gap + -- Use this binding with avoidStruts from Hooks.ManageDocks. + -- See also the statusBar function from Hooks.DynamicLog. + -- + -- , ((modm , xK_b ), sendMessage ToggleStruts) + + -- Quit xmonad + , ((modm .|. shiftMask, xK_q ), io (exitWith ExitSuccess)) + + -- Restart xmonad + , ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart") + + -- Run xmessage with a summary of the default keybindings (useful for beginners) + , ((modm .|. shiftMask, xK_slash ), spawn ("echo \"" ++ help ++ "\" | xmessage -file -")) + ] + ++ + + -- + -- mod-[1..9], Switch to workspace N + -- mod-shift-[1..9], Move client to workspace N + -- + [((m .|. modm, k), windows $ f i) + | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9] + , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]] + ++ + + -- + -- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3 + -- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3 + -- + [((m .|. modm, key), screenWorkspace sc >>= flip whenJust (windows . f)) + | (key, sc) <- zip [xK_w, xK_e, xK_r] [0..] + , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]] + + +------------------------------------------------------------------------ +-- Mouse bindings: default actions bound to mouse events +-- +myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $ + + -- mod-button1, Set the window to floating mode and move by dragging + [ ((modm, button1), (\w -> focus w >> mouseMoveWindow w + >> windows W.shiftMaster)) + + -- mod-button2, Raise the window to the top of the stack + , ((modm, button2), (\w -> focus w >> windows W.shiftMaster)) + + -- mod-button3, Set the window to floating mode and resize by dragging + , ((modm, button3), (\w -> focus w >> mouseResizeWindow w + >> windows W.shiftMaster)) + + -- you may also bind events to the mouse scroll wheel (button4 and button5) + ] + +------------------------------------------------------------------------ +-- Layouts: + +-- You can specify and transform your layouts by modifying these values. +-- If you change layout bindings be sure to use 'mod-shift-space' after +-- restarting (with 'mod-q') to reset your layout state to the new +-- defaults, as xmonad preserves your old layout settings by default. +-- +-- The available layouts. Note that each layout is separated by |||, +-- which denotes layout choice. +-- +myLayout = avoidStruts (tiled ||| Mirror tiled ||| Full ||| Grid) + where + -- default tiling algorithm partitions the screen into two panes + tiled = Tall nmaster delta ratio + + -- The default number of windows in the master pane + nmaster = 1 + + -- Default proportion of screen occupied by master pane + ratio = 1/2 + + -- Percent of screen to increment by when resizing panes + delta = 3/100 + +------------------------------------------------------------------------ +-- Window rules: + +-- Execute arbitrary actions and WindowSet manipulations when managing +-- a new window. You can use this to, for example, always float a +-- particular program, or have a client always appear on a particular +-- workspace. +-- +-- To find the property name associated with a program, use +-- > xprop | grep WM_CLASS +-- and click on the client you're interested in. +-- +-- To match on the WM_NAME, you can use 'title' in the same way that +-- 'className' and 'resource' are used below. +-- +myManageHook = composeAll + [ className =? "MPlayer" --> doFloat + , className =? "Gimp" --> doFloat + , resource =? "desktop_window" --> doIgnore + , resource =? "kdesktop" --> doIgnore ] + +------------------------------------------------------------------------ +-- Event handling + +-- * EwmhDesktops users should change this to ewmhDesktopsEventHook +-- +-- Defines a custom handler function for X Events. The function should +-- return (All True) if the default handler is to be run afterwards. To +-- combine event hooks use mappend or mconcat from Data.Monoid. +-- +myEventHook = mempty + +------------------------------------------------------------------------ +-- Status bars and logging + +-- Perform an arbitrary action on each internal state change or X event. +-- See the 'XMonad.Hooks.DynamicLog' extension for examples. +-- +myLogHook = return () + +------------------------------------------------------------------------ +-- Startup hook + +-- Perform an arbitrary action each time xmonad starts or is restarted +-- with mod-q. Used by, e.g., XMonad.Layout.PerWorkspace to initialize +-- per-workspace layout choices. +-- +-- By default, do nothing. +myStartupHook = do + spawnOnce "nitrogen --restore &" + spawnOnce "picom &" + spawnOnce "unclutter &" + spawnOnce "setxkbmap us" + +------------------------------------------------------------------------ +-- Now run xmonad with all the defaults we set up. + +-- Run xmonad with the settings you specify. No need to modify this. +-- +main :: IO () +main = do + xmproc0 <- spawnPipe "xmobar -x 0 /home/vylpes/.config/xmobar/xmobarrc0" +-- xmproc1 <- spawnPipe "xmobar -x 1 /home/vylpes/.config/xmobar/xmobarrc1" + xmonad $ docks $ defaults xmproc0 + +-- A structure containing your configuration settings, overriding +-- fields in the default config. Any you don't override, will +-- use the defaults defined in xmonad/XMonad/Config.hs +-- +-- No need to modify this. +-- +defaults xmproc0 = def { + -- simple stuff + terminal = myTerminal, + focusFollowsMouse = myFocusFollowsMouse, + clickJustFocuses = myClickJustFocuses, + borderWidth = myBorderWidth, + modMask = myModMask, + workspaces = myWorkspaces, + normalBorderColor = myNormalBorderColor, + focusedBorderColor = myFocusedBorderColor, + + -- key bindings + keys = myKeys, + mouseBindings = myMouseBindings, + + -- hooks, layouts + layoutHook = myLayout, + manageHook = ( isFullscreen --> doFullFloat ) <+> myManageHook <+> manageDocks, + handleEventHook = myEventHook, +-- logHook = myLogHook, + logHook = workspaceHistoryHook <+> myLogHook <+> dynamicLogWithPP xmobarPP + { ppOutput = \x -> hPutStrLn xmproc0 x + , ppCurrent = xmobarColor "#98be65" "" . wrap "[" "]" + , ppVisible = xmobarColor "#98be65" "" + , ppHidden = xmobarColor "#82AAFF" "" . wrap "*" "" + , ppHiddenNoWindows = xmobarColor "#c792ea" "" + , ppTitle = xmobarColor "#b3afc2" "" . shorten 60 + , ppSep = " | " + , ppUrgent = xmobarColor "#C45500" "" . wrap "!" "!" + , ppExtras = [windowCount] + , ppOrder = \(ws:l:t:ex) -> [ws,l] + }, + startupHook = myStartupHook + } + +-- | Finally, a copy of the default bindings in simple textual tabular format. +help :: String +help = unlines ["The default modifier key is 'alt'. Default keybindings:", + "", + "-- launching and killing programs", + "mod-Shift-Enter Launch xterminal", + "mod-p Launch dmenu", + "mod-Shift-p Launch gmrun", + "mod-Shift-c Close/kill the focused window", + "mod-Space Rotate through the available layout algorithms", + "mod-Shift-Space Reset the layouts on the current workSpace to default", + "mod-n Resize/refresh viewed windows to the correct size", + "", + "-- move focus up or down the window stack", + "mod-Tab Move focus to the next window", + "mod-Shift-Tab Move focus to the previous window", + "mod-j Move focus to the next window", + "mod-k Move focus to the previous window", + "mod-m Move focus to the master window", + "", + "-- modifying the window order", + "mod-Return Swap the focused window and the master window", + "mod-Shift-j Swap the focused window with the next window", + "mod-Shift-k Swap the focused window with the previous window", + "", + "-- resizing the master/slave ratio", + "mod-h Shrink the master area", + "mod-l Expand the master area", + "", + "-- floating layer support", + "mod-t Push window back into tiling; unfloat and re-tile it", + "", + "-- increase or decrease number of windows in the master area", + "mod-comma (mod-,) Increment the number of windows in the master area", + "mod-period (mod-.) Deincrement the number of windows in the master area", + "", + "-- quit, or restart", + "mod-Shift-q Quit xmonad", + "mod-q Restart xmonad", + "mod-[1..9] Switch to workSpace N", + "", + "-- Workspaces & screens", + "mod-Shift-[1..9] Move client to workspace N", + "mod-{w,e,r} Switch to physical/Xinerama screens 1, 2, or 3", + "mod-Shift-{w,e,r} Move client to screen 1, 2, or 3", + "", + "-- Mouse bindings: default actions bound to mouse events", + "mod-button1 Set the window to floating mode and move by dragging", + "mod-button2 Raise the window to the top of the stack", + "mod-button3 Set the window to floating mode and resize by dragging"] From a887fe636b4efb1bb73d2152e13cf7fd10ad2a00 Mon Sep 17 00:00:00 2001 From: Vylpes Date: Tue, 27 Jul 2021 15:17:11 +0100 Subject: [PATCH 03/86] Add config changes (#1) --- home/vylpes/.config/alacritty/alacritty.yml | 29 -- home/vylpes/.config/nitrogen/bg-saved.cfg | 2 +- home/vylpes/.config/nitrogen/nitrogen.cfg | 2 +- home/vylpes/.config/picom/picom.conf | 423 ++++++++++++++++++++ home/vylpes/.config/xmobar/xmobarrc0.BAK | 31 -- home/vylpes/.mutt/muttrc | 20 + home/vylpes/.xmonad/xmonad.hs | 8 +- 7 files changed, 450 insertions(+), 65 deletions(-) create mode 100644 home/vylpes/.config/picom/picom.conf delete mode 100644 home/vylpes/.config/xmobar/xmobarrc0.BAK create mode 100644 home/vylpes/.mutt/muttrc diff --git a/home/vylpes/.config/alacritty/alacritty.yml b/home/vylpes/.config/alacritty/alacritty.yml index b89cfbe..102bf15 100644 --- a/home/vylpes/.config/alacritty/alacritty.yml +++ b/home/vylpes/.config/alacritty/alacritty.yml @@ -40,35 +40,6 @@ font: draw_bold_text_with_bright_colors: true -colors: - primary: - background: '0x282c34' - foreground: '0xbbc2cf' - - selection: - text: '0xbbc2cf' - background: '0x282c34' - - normal: - black: '0x1c1f24' - red: '0xff6c6b' - green: '0x98be65' - yellow: '0xda8548' - blue: '0x51afef' - magenta: '0xc678dd' - cyan: '0x5699af' - white: '0x202338' - - bright: - black: '0x5b6268' - red: '0xda8548' - green: '0x4db5bd' - yellow: '0xecbe7b' - blue: '0x3071db' - magenta: '0xa9a1e1' - cyan: '0x46d9ff' - white: '0xdfdfdf' - background_opacity: 0.75 key_bindings: diff --git a/home/vylpes/.config/nitrogen/bg-saved.cfg b/home/vylpes/.config/nitrogen/bg-saved.cfg index ee0bc56..b052bc8 100644 --- a/home/vylpes/.config/nitrogen/bg-saved.cfg +++ b/home/vylpes/.config/nitrogen/bg-saved.cfg @@ -1,4 +1,4 @@ [xin_-1] -file=/home/vylpes/Pictures/Wallpapers/wmf4pf98d4l61.png +file=/home/vylpes/Wallpapers/IMG_6147.jpeg mode=0 bgcolor=#000000 diff --git a/home/vylpes/.config/nitrogen/nitrogen.cfg b/home/vylpes/.config/nitrogen/nitrogen.cfg index 7bd7963..066a041 100644 --- a/home/vylpes/.config/nitrogen/nitrogen.cfg +++ b/home/vylpes/.config/nitrogen/nitrogen.cfg @@ -9,4 +9,4 @@ view=icon recurse=true sort=alpha icon_caps=false -dirs=/home/vylpes/Pictures/Wallpapers;/usr/share/backgrounds/gnome; +dirs=/home/vylpes/Wallpapers; diff --git a/home/vylpes/.config/picom/picom.conf b/home/vylpes/.config/picom/picom.conf new file mode 100644 index 0000000..e51db9d --- /dev/null +++ b/home/vylpes/.config/picom/picom.conf @@ -0,0 +1,423 @@ +################################# +# Shadows # +################################# + + +# Enabled client-side shadows on windows. Note desktop windows +# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, +# unless explicitly requested using the wintypes option. +# +# shadow = false +shadow = true; + +# The blur radius for shadows, in pixels. (defaults to 12) +# shadow-radius = 12 +shadow-radius = 7; + +# The opacity of shadows. (0.0 - 1.0, defaults to 0.75) +# shadow-opacity = .75 + +# The left offset for shadows, in pixels. (defaults to -15) +# shadow-offset-x = -15 +shadow-offset-x = -7; + +# The top offset for shadows, in pixels. (defaults to -15) +# shadow-offset-y = -15 +shadow-offset-y = -7; + +# Avoid drawing shadows on dock/panel windows. This option is deprecated, +# you should use the *wintypes* option in your config file instead. +# +# no-dock-shadow = false + +# Don't draw shadows on drag-and-drop windows. This option is deprecated, +# you should use the *wintypes* option in your config file instead. +# +# no-dnd-shadow = false + +# Red color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-red = 0 + +# Green color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-green = 0 + +# Blue color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-blue = 0 + +# Do not paint shadows on shaped windows. Note shaped windows +# here means windows setting its shape through X Shape extension. +# Those using ARGB background is beyond our control. +# Deprecated, use +# shadow-exclude = 'bounding_shaped' +# or +# shadow-exclude = 'bounding_shaped && !rounded_corners' +# instead. +# +# shadow-ignore-shaped = '' + +# Specify a list of conditions of windows that should have no shadow. +# +# examples: +# shadow-exclude = "n:e:Notification"; +# +# shadow-exclude = [] +shadow-exclude = [ + "name = 'Notification'", + "class_g = 'Conky'", + "class_g ?= 'Notify-osd'", + "class_g = 'Cairo-clock'", + "_GTK_FRAME_EXTENTS@:c" +]; + +# Specify a X geometry that describes the region in which shadow should not +# be painted in, such as a dock window region. Use +# shadow-exclude-reg = "x10+0+0" +# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on. +# +# shadow-exclude-reg = "" + +# Crop shadow of a window fully on a particular Xinerama screen to the screen. +# xinerama-shadow-crop = false + + +################################# +# Fading # +################################# + + +# Fade windows in/out when opening/closing and when opacity changes, +# unless no-fading-openclose is used. +# fading = false +fading = false + +# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028) +# fade-in-step = 0.028 +fade-in-step = 0.03; + +# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03) +# fade-out-step = 0.03 +fade-out-step = 0.03; + +# The time between steps in fade step, in milliseconds. (> 0, defaults to 10) +# fade-delta = 10 + +# Specify a list of conditions of windows that should not be faded. +# fade-exclude = [] + +# Do not fade on window open/close. +# no-fading-openclose = false + +# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc. +# no-fading-destroyed-argb = false + + +################################# +# Transparency / Opacity # +################################# + + +# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0) +# inactive-opacity = 1 +inactive-opacity = 0.8; + +# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default) +# frame-opacity = 1.0 +frame-opacity = 0.7; + +# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0) +# menu-opacity = 1.0 + +# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows. +# inactive-opacity-override = true +inactive-opacity-override = false; + +# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0) +# active-opacity = 1.0 + +# Dim inactive windows. (0.0 - 1.0, defaults to 0.0) +# inactive-dim = 0.0 + +# Specify a list of conditions of windows that should always be considered focused. +# focus-exclude = [] +focus-exclude = [ "class_g = 'Cairo-clock'" ]; + +# Use fixed inactive dim value, instead of adjusting according to window opacity. +# inactive-dim-fixed = 1.0 + +# Specify a list of opacity rules, in the format `PERCENT:PATTERN`, +# like `50:name *= "Firefox"`. picom-trans is recommended over this. +# Note we don't make any guarantee about possible conflicts with other +# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows. +# example: +# opacity-rule = [ "80:class_g = 'URxvt'" ]; +# +# opacity-rule = [] + + +################################# +# Background-Blurring # +################################# + + +# Parameters for background blurring, see the *BLUR* section for more information. +# blur-method = +# blur-size = 12 +# +# blur-deviation = false + +# Blur background of semi-transparent / ARGB windows. +# Bad in performance, with driver-dependent behavior. +# The name of the switch may change without prior notifications. +# +# blur-background = false + +# Blur background of windows when the window frame is not opaque. +# Implies: +# blur-background +# Bad in performance, with driver-dependent behavior. The name may change. +# +# blur-background-frame = false + + +# Use fixed blur strength rather than adjusting according to window opacity. +# blur-background-fixed = false + + +# Specify the blur convolution kernel, with the following format: +# example: +# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; +# +# blur-kern = '' +blur-kern = "3x3box"; + + +# Exclude conditions for background blur. +# blur-background-exclude = [] +blur-background-exclude = [ + "window_type = 'dock'", + "window_type = 'desktop'", + "_GTK_FRAME_EXTENTS@:c" +]; + +################################# +# General Settings # +################################# + +# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers. +# daemon = false + +# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`. +# `xrender` is the default one. +# +# backend = 'glx' +backend = "xrender"; + +# Enable/disable VSync. +# vsync = false +vsync = true + +# Enable remote control via D-Bus. See the *D-BUS API* section below for more details. +# dbus = false + +# Try to detect WM windows (a non-override-redirect window with no +# child that has 'WM_STATE') and mark them as active. +# +# mark-wmwin-focused = false +mark-wmwin-focused = true; + +# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused. +# mark-ovredir-focused = false +mark-ovredir-focused = true; + +# Try to detect windows with rounded corners and don't consider them +# shaped windows. The accuracy is not very high, unfortunately. +# +# detect-rounded-corners = false +detect-rounded-corners = true; + +# Detect '_NET_WM_OPACITY' on client windows, useful for window managers +# not passing '_NET_WM_OPACITY' of client windows to frame windows. +# +# detect-client-opacity = false +detect-client-opacity = true; + +# Specify refresh rate of the screen. If not specified or 0, picom will +# try detecting this with X RandR extension. +# +# refresh-rate = 60 +refresh-rate = 0 + +# Limit picom to repaint at most once every 1 / 'refresh_rate' second to +# boost performance. This should not be used with +# vsync drm/opengl/opengl-oml +# as they essentially does sw-opti's job already, +# unless you wish to specify a lower refresh rate than the actual value. +# +# sw-opti = + +# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, +# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, +# provided that the WM supports it. +# +# use-ewmh-active-win = false + +# Unredirect all windows if a full-screen opaque window is detected, +# to maximize performance for full-screen windows. Known to cause flickering +# when redirecting/unredirecting windows. +# +# unredir-if-possible = false + +# Delay before unredirecting the window, in milliseconds. Defaults to 0. +# unredir-if-possible-delay = 0 + +# Conditions of windows that shouldn't be considered full-screen for unredirecting screen. +# unredir-if-possible-exclude = [] + +# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows +# in the same group focused at the same time. +# +# detect-transient = false +detect-transient = true + +# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same +# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if +# detect-transient is enabled, too. +# +# detect-client-leader = false +detect-client-leader = true + +# Resize damaged region by a specific number of pixels. +# A positive value enlarges it while a negative one shrinks it. +# If the value is positive, those additional pixels will not be actually painted +# to screen, only used in blur calculation, and such. (Due to technical limitations, +# with use-damage, those pixels will still be incorrectly painted to screen.) +# Primarily used to fix the line corruption issues of blur, +# in which case you should use the blur radius value here +# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`, +# with a 5x5 one you use `--resize-damage 2`, and so on). +# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly. +# +# resize-damage = 1 + +# Specify a list of conditions of windows that should be painted with inverted color. +# Resource-hogging, and is not well tested. +# +# invert-color-include = [] + +# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. +# Might cause incorrect opacity when rendering transparent content (but never +# practically happened) and may not work with blur-background. +# My tests show a 15% performance boost. Recommended. +# +# glx-no-stencil = false + +# GLX backend: Avoid rebinding pixmap on window damage. +# Probably could improve performance on rapid window content changes, +# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.). +# Recommended if it works. +# +# glx-no-rebind-pixmap = false + +# Disable the use of damage information. +# This cause the whole screen to be redrawn everytime, instead of the part of the screen +# has actually changed. Potentially degrades the performance, but might fix some artifacts. +# The opposing option is use-damage +# +# no-use-damage = false +use-damage = true + +# Use X Sync fence to sync clients' draw calls, to make sure all draw +# calls are finished before picom starts drawing. Needed on nvidia-drivers +# with GLX backend for some users. +# +# xrender-sync-fence = false + +# GLX backend: Use specified GLSL fragment shader for rendering window contents. +# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl` +# in the source tree for examples. +# +# glx-fshader-win = '' + +# Force all windows to be painted with blending. Useful if you +# have a glx-fshader-win that could turn opaque pixels transparent. +# +# force-win-blend = false + +# Do not use EWMH to detect fullscreen windows. +# Reverts to checking if a window is fullscreen based only on its size and coordinates. +# +# no-ewmh-fullscreen = false + +# Dimming bright windows so their brightness doesn't exceed this set value. +# Brightness of a window is estimated by averaging all pixels in the window, +# so this could comes with a performance hit. +# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0) +# +# max-brightness = 1.0 + +# Make transparent windows clip other windows like non-transparent windows do, +# instead of blending on top of them. +# +# transparent-clipping = false + +# Set the log level. Possible values are: +# "trace", "debug", "info", "warn", "error" +# in increasing level of importance. Case doesn't matter. +# If using the "TRACE" log level, it's better to log into a file +# using *--log-file*, since it can generate a huge stream of logs. +# +# log-level = "debug" +log-level = "warn"; + +# Set the log file. +# If *--log-file* is never specified, logs will be written to stderr. +# Otherwise, logs will to written to the given file, though some of the early +# logs might still be written to the stderr. +# When setting this option from the config file, it is recommended to use an absolute path. +# +# log-file = '/path/to/your/log/file' + +# Show all X errors (for debugging) +# show-all-xerrors = false + +# Write process ID to a file. +# write-pid-path = '/path/to/your/log/file' + +# Window type settings +# +# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard: +# "unknown", "desktop", "dock", "toolbar", "menu", "utility", +# "splash", "dialog", "normal", "dropdown_menu", "popup_menu", +# "tooltip", "notification", "combo", and "dnd". +# +# Following per window-type options are available: :: +# +# fade, shadow::: +# Controls window-type-specific shadow and fade settings. +# +# opacity::: +# Controls default opacity of the window type. +# +# focus::: +# Controls whether the window of this type is to be always considered focused. +# (By default, all window types except "normal" and "dialog" has this on.) +# +# full-shadow::: +# Controls whether shadow is drawn under the parts of the window that you +# normally won't be able to see. Useful when the window has parts of it +# transparent, and you want shadows in those areas. +# +# redir-ignore::: +# Controls whether this type of windows should cause screen to become +# redirected again after been unredirected. If you have unredir-if-possible +# set, and doesn't want certain window to cause unnecessary screen redirection, +# you can set this to `true`. +# +wintypes: +{ + tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; + dock = { shadow = false; } + dnd = { shadow = false; } + popup_menu = { opacity = 0.8; } + dropdown_menu = { opacity = 0.8; } +}; diff --git a/home/vylpes/.config/xmobar/xmobarrc0.BAK b/home/vylpes/.config/xmobar/xmobarrc0.BAK deleted file mode 100644 index e4a86d1..0000000 --- a/home/vylpes/.config/xmobar/xmobarrc0.BAK +++ /dev/null @@ -1,31 +0,0 @@ -Config { font = "xft:hack:pixelsize=24:antialias=true:hinting=true" - , additionalFonts = [] - , borderColor = "black" - , border = TopB - , bgColor = "black" - , fgColor = "grey" - , alpha = 255 - , position = Static { xpos = 0, ypos = 0, width = 3840, height = 32 } - , textOffset = -1 - , iconOffset = -1 - , lowerOnStart = True - , pickBroadest = False - , persistent = True - , hideOnStart = False - , iconRoot = "/home/vylpes/.xmonad/xpm" - , allDesktops = False - , overrideRedirect = True - , commands = [ Run Network "enp24s0" ["-t", "rx kb tx kb"] 10 - , Run Cpu ["-t", "cpu %", "-L","3","-H","50", - "--normal","green","--high","red"] 10 - , Run Memory ["-t","mem %"] 10 - , Run Com "uname" ["-s","-r"] "" 36000 - , Run Date "%a %_d %b %Y %H:%M" "date" 10 - , Run DiskU [("/", "hdd free")] [] 10 - , Run UnsafeStdinReader - ] - , sepChar = "%" - , alignSep = "}{" - , template = "%cpu% | %memory% | %enp24s0% | %disku% }\ - \{ %date% | %uname% | %UnsafeStdinReader%" - } diff --git a/home/vylpes/.mutt/muttrc b/home/vylpes/.mutt/muttrc new file mode 100644 index 0000000..cece8ee --- /dev/null +++ b/home/vylpes/.mutt/muttrc @@ -0,0 +1,20 @@ +set from = "ADDRESS" +set realname = "NAME" + +set imap_user = "ADDRESS" +set imap_pass = "PASSWORD" + +set smtp_url = "smtp://$imap_user@mail.URL:587" +set smtp_pass = $imap_pass + +set folder = "imap://mail.URL" +set spoolfile = "+Inbox" +set record = "+Sent" +set postponed = "+Drafts" +set trash = "+Trash" + +set move = no + +mailboxes "=Inbox =Sent =Drafts =Trash =Ongoing" + +set editor = vim diff --git a/home/vylpes/.xmonad/xmonad.hs b/home/vylpes/.xmonad/xmonad.hs index 9ec0e9b..8c5552d 100644 --- a/home/vylpes/.xmonad/xmonad.hs +++ b/home/vylpes/.xmonad/xmonad.hs @@ -73,14 +73,16 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $ -- launch dmenu -- , ((modm, xK_p ), spawn "sh ~/.scripts/dmenu_fix") - , ((modm, xK_p ), spawn "dmenu_run") +-- , ((modm, xK_p ), spawn "dmenu_run") + , ((modm, xK_p ), spawn "rofi -combi-modi window,drun,ssh -theme Arc-Dark -font 'hack 18' -show combi") + , ((modm .|. shiftMask, xK_m ), spawn "rofi -show emoji -modi emoji -theme Arc-Dark -font 'hack 18'") -- launch firefox , ((modm .|. shiftMask, xK_b ), spawn "firefox") -- launch flameshot - , ((modm .|. shiftMask, xK_F3 ), spawn "flameshot full -c -p ~/Pictures/captures") - , ((modm .|. shiftMask, xK_F4 ), spawn "flameshot gui -p ~/Pictures/captures") + , ((modm .|. shiftMask, xK_s ), spawn "flameshot full -c -p ~/captures") + , ((modm, xK_s ), spawn "flameshot gui -p ~/captures") -- launch gmrun , ((modm .|. shiftMask, xK_p ), spawn "gmrun") From 5045919077509c5a6466b119084f51dbc9ca3402 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 27 Sep 2021 18:32:51 +0100 Subject: [PATCH 04/86] Update config for 27th September 2021 --- README.md | 9 +++++++-- home/vylpes/.config/nitrogen/bg-saved.cfg | 4 ---- home/vylpes/.config/nitrogen/nitrogen.cfg | 12 ------------ home/vylpes/.config/xmobar/xmobarrc0 | 4 ++-- home/vylpes/.xmonad/xmonad.hs | 1 + 5 files changed, 10 insertions(+), 20 deletions(-) delete mode 100644 home/vylpes/.config/nitrogen/bg-saved.cfg delete mode 100644 home/vylpes/.config/nitrogen/nitrogen.cfg diff --git a/README.md b/README.md index a5a5bd8..cc1b47b 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,10 @@ This is a list of the packages I use - cmatrix - cups - discord -- dmenu +- doas - dolphin-emu +- dunst +- flameshot - gimp - lightdm - lightdm-webkit2-greeter @@ -25,11 +27,14 @@ This is a list of the packages I use - npm - nvidia - openssh +- pavucontrol - picom +- powerlevel10k - pulseaudio - qemu - retroarch -- sudo +- rofi +- todoist - vim - x11 - xmonad diff --git a/home/vylpes/.config/nitrogen/bg-saved.cfg b/home/vylpes/.config/nitrogen/bg-saved.cfg deleted file mode 100644 index b052bc8..0000000 --- a/home/vylpes/.config/nitrogen/bg-saved.cfg +++ /dev/null @@ -1,4 +0,0 @@ -[xin_-1] -file=/home/vylpes/Wallpapers/IMG_6147.jpeg -mode=0 -bgcolor=#000000 diff --git a/home/vylpes/.config/nitrogen/nitrogen.cfg b/home/vylpes/.config/nitrogen/nitrogen.cfg deleted file mode 100644 index 066a041..0000000 --- a/home/vylpes/.config/nitrogen/nitrogen.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[geometry] -posx=0 -posy=30 -sizex=3836 -sizey=2126 - -[nitrogen] -view=icon -recurse=true -sort=alpha -icon_caps=false -dirs=/home/vylpes/Wallpapers; diff --git a/home/vylpes/.config/xmobar/xmobarrc0 b/home/vylpes/.config/xmobar/xmobarrc0 index 5eab6a0..8dde90d 100644 --- a/home/vylpes/.config/xmobar/xmobarrc0 +++ b/home/vylpes/.config/xmobar/xmobarrc0 @@ -1,11 +1,11 @@ -Config { font = "xft:hack:pixelsize=30:antialias=true:hinting=true" +Config { font = "xft:hack:pixelsize=12:antialias=true:hinting=true" , additionalFonts = [] , borderColor = "black" , border = TopB , bgColor = "black" , fgColor = "grey" , alpha = 255 - , position = Static { xpos = 0, ypos = 0, width = 3940, height = 30 } + , position = Static { xpos = 0, ypos = 0, width = 1920, height = 20 } , textOffset = -1 , iconOffset = -1 , lowerOnStart = True diff --git a/home/vylpes/.xmonad/xmonad.hs b/home/vylpes/.xmonad/xmonad.hs index 8c5552d..2f138b5 100644 --- a/home/vylpes/.xmonad/xmonad.hs +++ b/home/vylpes/.xmonad/xmonad.hs @@ -269,6 +269,7 @@ myStartupHook = do spawnOnce "nitrogen --restore &" spawnOnce "picom &" spawnOnce "unclutter &" + spawnOnce "dunst &" spawnOnce "setxkbmap us" ------------------------------------------------------------------------ From 63a06b3f7c0828f09f7d152499a7f1d4b530eaea Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 27 Sep 2021 18:35:50 +0100 Subject: [PATCH 05/86] Add rofi-emoji to package list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cc1b47b..e299f91 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ This is a list of the packages I use - qemu - retroarch - rofi +- rofi-emoji - todoist - vim - x11 From 4ffb9015fd3e8db07a6d226fea68703db442aae4 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 1 Jan 2022 21:49:34 +0000 Subject: [PATCH 06/86] Add i3 config and vimrc --- home/vylpes/.config/i3/config | 196 ++++++++++++++++++++++++++++++++++ home/vylpes/.vimrc | 20 ++++ 2 files changed, 216 insertions(+) create mode 100644 home/vylpes/.config/i3/config create mode 100644 home/vylpes/.vimrc diff --git a/home/vylpes/.config/i3/config b/home/vylpes/.config/i3/config new file mode 100644 index 0000000..a1d3b7c --- /dev/null +++ b/home/vylpes/.config/i3/config @@ -0,0 +1,196 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Start XDG autostart .desktop files using dex. See also +# https://wiki.archlinux.org/index.php/XDG_Autostart +exec --no-startup-id dex --autostart --environment i3 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +exec_always picom +exec_always nitrogen --restore +exec_always dunst + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# Custom keybinds +bindsym $mod+Shift+f exec flameshot gui -p ~/Pictures/captures +bindsym $mod+b exec firefox +bindsym $mod+Shift+z exec dm-tool lock +# ===== + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id dmenu_run +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+Shift+h split h + +# split in vertical orientation +bindsym $mod+Shift+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym h resize shrink width 10 px or 10 ppt + bindsym j 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 + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resizer + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status +} diff --git a/home/vylpes/.vimrc b/home/vylpes/.vimrc new file mode 100644 index 0000000..25ab002 --- /dev/null +++ b/home/vylpes/.vimrc @@ -0,0 +1,20 @@ +syntax on + +set number +set linebreak +set showbreak=+++ +set showmatch +set visualbell + +set hlsearch +set smartcase +set ignorecase +set incsearch + +set autoindent +set smartindent + +set ruler + +set undolevels=1000 +set backspace=indent,eol,start From 42b470c5b1955c8b4f8b604b28dc539e621ec7ea Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 7 Mar 2022 18:23:13 +0000 Subject: [PATCH 07/86] Add scripts for battery --- home/vylpes/.scripts/dwmblocks/battery.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 home/vylpes/.scripts/dwmblocks/battery.sh diff --git a/home/vylpes/.scripts/dwmblocks/battery.sh b/home/vylpes/.scripts/dwmblocks/battery.sh new file mode 100644 index 0000000..3e66a5d --- /dev/null +++ b/home/vylpes/.scripts/dwmblocks/battery.sh @@ -0,0 +1,4 @@ +if [ -d /sys/class/power_supply/BAT0 ] +then + echo $(acpi -V | grep 'Battery 0' | head -n 1 | cut -f2 -d, | sed 's/ //') +fi From c98d2639b07d7ab299110b89617a63f6a10e4f32 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sun, 1 May 2022 16:35:07 +0100 Subject: [PATCH 08/86] Update alacritty config to match new window opacity --- home/vylpes/.config/alacritty/alacritty.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home/vylpes/.config/alacritty/alacritty.yml b/home/vylpes/.config/alacritty/alacritty.yml index 102bf15..57d36c3 100644 --- a/home/vylpes/.config/alacritty/alacritty.yml +++ b/home/vylpes/.config/alacritty/alacritty.yml @@ -2,6 +2,10 @@ env: TERM: xterm-256color window: + dimensions: + columns: 133 + lines: 40 + padding: x: 6 y: 6 @@ -11,6 +15,8 @@ window: class: instance: Alacritty general: Alacritty + + opacity: 1 scrolling: history: 5000 @@ -40,8 +46,6 @@ font: draw_bold_text_with_bright_colors: true -background_opacity: 0.75 - key_bindings: - { key: V, mods: Control|Shift, action: Paste } - { key: C, mods: Control|Shift, action: Copy } From 7037ec488abe457015813eae0d0895c2ffb6f14e Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sun, 1 May 2022 16:36:21 +0100 Subject: [PATCH 09/86] Add .xprofile --- home/vylpes/.xprofile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 home/vylpes/.xprofile diff --git a/home/vylpes/.xprofile b/home/vylpes/.xprofile new file mode 100644 index 0000000..86aeba2 --- /dev/null +++ b/home/vylpes/.xprofile @@ -0,0 +1,7 @@ +xrandr --output DP-4 --scale 0.75x0.75 + +dwmblocks & +dunst & +nitrogen --restore & +picom & +variety & From 89594c26e8dc3aaa785f6039cf498edb2ad2e848 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sun, 1 May 2022 17:00:47 +0100 Subject: [PATCH 10/86] Add icons to xmobar --- README.md | 6 +++--- home/vylpes/.config/xmobar/xmobarrc0 | 22 ++++++++++++---------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e299f91..23e7acb 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,13 @@ This is a list of the packages I use - picom - powerlevel10k - pulseaudio -- qemu -- retroarch - rofi - rofi-emoji -- todoist +- ttf-font-awesome +- ttf-hack - vim - x11 - xmonad - xmobar +- yarn - zsh diff --git a/home/vylpes/.config/xmobar/xmobarrc0 b/home/vylpes/.config/xmobar/xmobarrc0 index 8dde90d..a67ae7d 100644 --- a/home/vylpes/.config/xmobar/xmobarrc0 +++ b/home/vylpes/.config/xmobar/xmobarrc0 @@ -1,11 +1,13 @@ -Config { font = "xft:hack:pixelsize=12:antialias=true:hinting=true" - , additionalFonts = [] +Config { font = "xft:hack:pixelsize=20:antialias=true:hinting=true" + , additionalFonts = [ "xft:Font Awesome 6 Free Solid:pixelsize=20" + , "xft:Font Awesome 6 Brands:pixelsize=20" + ] , borderColor = "black" , border = TopB , bgColor = "black" , fgColor = "grey" , alpha = 255 - , position = Static { xpos = 0, ypos = 0, width = 1920, height = 20 } + , position = Static { xpos = 0, ypos = 0, width = 2880, height = 30 } , textOffset = -1 , iconOffset = -1 , lowerOnStart = True @@ -15,17 +17,17 @@ Config { font = "xft:hack:pixelsize=12:antialias=true:hinting=true" , iconRoot = "/home/vylpes/.xmonad/xpm" , allDesktops = False , overrideRedirect = True - , commands = [ Run Network "enp24s0" ["-t", "rx kb tx kb"] 10 - , Run Cpu ["-t", "cpu %", "-L","3","-H","50", + , commands = [ Run Network "enp24s0" ["-t", "kb kb"] 10 + , Run Cpu ["-t", "%", "-L","3","-H","50", "--normal","green","--high","red"] 10 - , Run Memory ["-t","mem %"] 10 - , Run Com "uname" ["-s","-r"] "" 36000 + , Run Memory ["-t","%"] 10 + , Run Com "uname" ["-r"] "" 36000 , Run Date "%a %_d %b %Y %H:%M" "date" 10 - , Run DiskU [("/", "ssd free"),("/home", "| hdd free")] [] 10 + , Run DiskU [("/", ""),("/home", "| hdd ")] [] 10 , Run UnsafeStdinReader ] , sepChar = "%" , alignSep = "}{" - , template = "%cpu% | %memory% | %enp24s0% | %disku% }\ - \{ %date% | %uname% | %UnsafeStdinReader%" + , template = " %cpu% |  %memory% | %enp24s0% |  %disku% }\ + \{ %date% |  %uname% | %UnsafeStdinReader%" } From eede1742abcf60d1bc117fabee1cf558ac6454c8 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 27 Jun 2022 19:42:56 +0100 Subject: [PATCH 11/86] Add i3 config --- home/vylpes/.config/i3/config | 49 +++++++++++++++++++---------- home/vylpes/.config/i3status/config | 42 +++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 16 deletions(-) create mode 100644 home/vylpes/.config/i3status/config diff --git a/home/vylpes/.config/i3/config b/home/vylpes/.config/i3/config index a1d3b7c..e128f4b 100644 --- a/home/vylpes/.config/i3/config +++ b/home/vylpes/.config/i3/config @@ -49,19 +49,22 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU floating_modifier $mod # Custom keybinds -bindsym $mod+Shift+f exec flameshot gui -p ~/Pictures/captures -bindsym $mod+b exec firefox +bindsym $mod+s exec flameshot gui -p ~/Pictures/captures +bindsym $mod+f exec firefox bindsym $mod+Shift+z exec dm-tool lock # ===== # start a terminal -bindsym $mod+Return exec i3-sensible-terminal +bindsym $mod+a exec i3-sensible-terminal # kill focused window -bindsym $mod+Shift+q kill +bindsym $mod+Shift+c kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+p exec --no-startup-id "rofi -combi-modi window,drun,ssh -theme Arc-Dark -font 'hack 18' -show combi" +bindsym $mod+Shift+p exec --no-startup-id "rofi -show emoji -modi emoji -theme Arc-Dark -font 'Noto Emoji 18'" +bindsym $mod+o exec --no-startup-id "passmenu -combi-modi window,drun,ssh -theme Arc-Dark -font 'hack 18' -show combi" +bindsym $mod+Shift+o exec --no-startup-id "passmenu-otp -combi-modi window,drun,ssh -theme Arc-Dark -font 'hack 18' -show combi" # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a @@ -81,10 +84,10 @@ bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left @@ -93,18 +96,18 @@ bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation -bindsym $mod+Shift+h split h +bindsym $mod+Shift+b split h # split in vertical orientation bindsym $mod+Shift+v split v # enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle +bindsym $mod+Mod1+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split +bindsym $mod+Mod1+s layout stacking +bindsym $mod+Mod1+w layout tabbed +bindsym $mod+Mod1+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle @@ -113,7 +116,7 @@ bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle # focus the parent container -bindsym $mod+a focus parent +bindsym $mod+Mod1+a focus parent # focus the child container #bindsym $mod+d focus child @@ -156,7 +159,7 @@ bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 # reload the configuration file -bindsym $mod+Shift+c reload +bindsym $mod+Mod1+r reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) @@ -192,5 +195,19 @@ bindsym $mod+r mode "resizer # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { + position top status_command i3status } + +# Gaps +gaps inner 10 +gaps outer 10 +gaps horizontal 10 +gaps vertical 10 +gaps top 10 +gaps right 10 +gaps bottom 10 +gaps left 10 + +default_border pixel +client.focused #555555 #555555 #ffffff #2e9ef4 #63C5DA diff --git a/home/vylpes/.config/i3status/config b/home/vylpes/.config/i3status/config new file mode 100644 index 0000000..3170ba9 --- /dev/null +++ b/home/vylpes/.config/i3status/config @@ -0,0 +1,42 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + color_good = "#63C5DA" + interval = 5 +} + +order += "ethernet _first_" +order += "disk /" +order += "load" +order += "memory" +order += "tztime local" + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +disk "/" { + format = "%avail" +} + +load { + format = "%1min" +} + +memory { + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%a %d/%m/%Y %H:%M" +} From 0c0706586772ad793bb5b3043723e19bbb780189 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Tue, 28 Jun 2022 19:37:43 +0100 Subject: [PATCH 12/86] Add polybar config --- README.md | 5 +- home/vylpes/.config/i3/config | 11 +- home/vylpes/.config/polybar/config.ini | 168 +++++++++++++++++++++++++ 3 files changed, 177 insertions(+), 7 deletions(-) create mode 100644 home/vylpes/.config/polybar/config.ini diff --git a/README.md b/README.md index 23e7acb..aca0d96 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ This is a list of the packages I use - dunst - flameshot - gimp +- i3 - lightdm - lightdm-webkit2-greeter - networkmanager @@ -26,9 +27,11 @@ This is a list of the packages I use - nodejs - npm - nvidia +- nvm - openssh - pavucontrol - picom +- polybar - powerlevel10k - pulseaudio - rofi @@ -37,7 +40,5 @@ This is a list of the packages I use - ttf-hack - vim - x11 -- xmonad -- xmobar - yarn - zsh diff --git a/home/vylpes/.config/i3/config b/home/vylpes/.config/i3/config index e128f4b..6ccc454 100644 --- a/home/vylpes/.config/i3/config +++ b/home/vylpes/.config/i3/config @@ -37,9 +37,10 @@ exec --no-startup-id nm-applet exec_always picom exec_always nitrogen --restore exec_always dunst +exec --no-startup-id polybar -r # Use pactl to adjust volume in PulseAudio. -set $refresh_i3status killall -SIGUSR1 i3status +set $refresh_i3status killall -SIGUSR1 polybar bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status @@ -158,6 +159,10 @@ bindsym $mod+Shift+8 move container to workspace number $ws8 bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 +# keyboard layouts +bindsym $mod+Shift+F1 exec setxkbmap -layout us && $refresh_i3status +bindsym $mod+Shift+F2 exec setxkbmap -layout gb && $refresh_i3status + # reload the configuration file bindsym $mod+Mod1+r reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) @@ -194,10 +199,6 @@ bindsym $mod+r mode "resizer # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) -bar { - position top - status_command i3status -} # Gaps gaps inner 10 diff --git a/home/vylpes/.config/polybar/config.ini b/home/vylpes/.config/polybar/config.ini new file mode 100644 index 0000000..015402b --- /dev/null +++ b/home/vylpes/.config/polybar/config.ini @@ -0,0 +1,168 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +[colors] +background = #282A2E +background-alt = #373B41 +foreground = #C5C8C6 +primary = #63C5DA +secondary = #8ABEB7 +alert = #A54242 +disabled = #707880 + +[bar/top] +width = 100% +height = 24pt +radius = 6 + +; dpi = 96 + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3pt + +border-size = 4pt +border-color = #00000000 + +padding-left = 0 +padding-right = 1 + +module-margin = 1 + +separator = | +separator-foreground = ${colors.disabled} + +font-0 = Hack;2 +font-1 = Font Awesome + +modules-left = xworkspaces xwindow +modules-right = filesystem pulseaudio xkeyboard memory cpu eth date + +cursor-click = pointer +cursor-scroll = ns-resize + +enable-ipc = true + +; tray-position = right + +; wm-restack = generic +; wm-restack = bspwm +; wm-restack = i3 + +; override-redirect = true + +[module/xworkspaces] +type = internal/xworkspaces + +label-active = %name% +label-active-background = ${colors.background-alt} +label-active-underline= ${colors.primary} +label-active-padding = 1 + +label-occupied = %name% +label-occupied-padding = 1 + +label-urgent = %name% +label-urgent-background = ${colors.alert} +label-urgent-padding = 1 + +label-empty = %name% +label-empty-foreground = ${colors.disabled} +label-empty-padding = 1 + +[module/xwindow] +type = internal/xwindow +label = %title:0:60:...% + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / + +label-mounted = %{F#63C5DA}%mountpoint%%{F-} %percentage_used%% + +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.disabled} + +[module/pulseaudio] +type = internal/pulseaudio + +format-volume-prefix = "VOL " +format-volume-prefix-foreground = ${colors.primary} +format-volume = + +label-volume = %percentage%% + +label-muted = muted +label-muted-foreground = ${colors.disabled} + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +label-layout = %layout% +label-layout-foreground = ${colors.primary} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-foreground = ${colors.background} +label-indicator-background = ${colors.secondary} + +[module/memory] +type = internal/memory +interval = 2 +format-prefix = "RAM " +format-prefix-foreground = ${colors.primary} +label = %percentage_used:2%% + +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = "CPU " +format-prefix-foreground = ${colors.primary} +label = %percentage:2%% + +[network-base] +type = internal/network +interval = 5 +format-connected = +format-disconnected = +label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected + +[module/eth] +inherit = network-base +interface-type = wired +label-connected = %{F#63C5DA}%ifname%%{F-} %local_ip% + +[module/date] +type = internal/date +interval = 1 + +date = %H:%M +date-alt = %Y-%m-%d %H:%M:%S + +label = %date% +label-foreground = ${colors.primary} + +[settings] +screenchange-reload = true +pseudo-transparency = true + +; vim:ft=dosini From 315b9fed696013843e27ec1bdd343b7d5ee9f967 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Tue, 28 Jun 2022 19:41:03 +0100 Subject: [PATCH 13/86] Update flameshot command to save to clipboard --- home/vylpes/.config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/vylpes/.config/i3/config b/home/vylpes/.config/i3/config index 6ccc454..4b99628 100644 --- a/home/vylpes/.config/i3/config +++ b/home/vylpes/.config/i3/config @@ -50,7 +50,7 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU floating_modifier $mod # Custom keybinds -bindsym $mod+s exec flameshot gui -p ~/Pictures/captures +bindsym $mod+s exec flameshot gui -p ~/Pictures/captures --clipboard bindsym $mod+f exec firefox bindsym $mod+Shift+z exec dm-tool lock # ===== From 318e61c5c19eb1e525a6a870fa11cd25e85897e3 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Tue, 28 Jun 2022 20:15:30 +0100 Subject: [PATCH 14/86] Remove loading cursor on blank --- home/vylpes/.config/i3/config | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/home/vylpes/.config/i3/config b/home/vylpes/.config/i3/config index 4b99628..f1e2008 100644 --- a/home/vylpes/.config/i3/config +++ b/home/vylpes/.config/i3/config @@ -34,9 +34,9 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet -exec_always picom -exec_always nitrogen --restore -exec_always dunst +exec_always --no-startup-id picom +exec_always --no-startup-id nitrogen --restore +exec_always --no-startup-id dunst exec --no-startup-id polybar -r # Use pactl to adjust volume in PulseAudio. @@ -50,9 +50,9 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU floating_modifier $mod # Custom keybinds -bindsym $mod+s exec flameshot gui -p ~/Pictures/captures --clipboard -bindsym $mod+f exec firefox -bindsym $mod+Shift+z exec dm-tool lock +bindsym $mod+s exec --no-startup-id flameshot gui -p ~/Pictures/captures --clipboard +bindsym $mod+f exec --no-startup-id firefox +bindsym $mod+Shift+z exec --no-startup-id i3lock # ===== # start a terminal @@ -160,8 +160,8 @@ bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 # keyboard layouts -bindsym $mod+Shift+F1 exec setxkbmap -layout us && $refresh_i3status -bindsym $mod+Shift+F2 exec setxkbmap -layout gb && $refresh_i3status +bindsym $mod+Shift+F1 exec --no-startup-id setxkbmap -layout us && $refresh_i3status +bindsym $mod+Shift+F2 exec --no-startup-id setxkbmap -layout gb && $refresh_i3status # reload the configuration file bindsym $mod+Mod1+r reload From e65b7dea7800ef7f004bba2db2b85c6fd381e24e Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Fri, 1 Jul 2022 21:27:55 +0100 Subject: [PATCH 15/86] Add i3lock-fancy --- README.md | 2 ++ home/vylpes/.config/i3/config | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index aca0d96..db036de 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ This is a list of the packages I use - flameshot - gimp - i3 +- i3lock +- i3lock-fancy - lightdm - lightdm-webkit2-greeter - networkmanager diff --git a/home/vylpes/.config/i3/config b/home/vylpes/.config/i3/config index f1e2008..b57adee 100644 --- a/home/vylpes/.config/i3/config +++ b/home/vylpes/.config/i3/config @@ -52,7 +52,7 @@ floating_modifier $mod # Custom keybinds bindsym $mod+s exec --no-startup-id flameshot gui -p ~/Pictures/captures --clipboard bindsym $mod+f exec --no-startup-id firefox -bindsym $mod+Shift+z exec --no-startup-id i3lock +bindsym $mod+Shift+z exec --no-startup-id i3lock-fancy -g -t "System Locked" -f Hack-Regular # ===== # start a terminal From 9f229cc3b57929f14b78658a83f961cddbd16bc9 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sun, 10 Jul 2022 13:18:12 +0100 Subject: [PATCH 16/86] Add date to polybar --- home/vylpes/.config/polybar/config.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/vylpes/.config/polybar/config.ini b/home/vylpes/.config/polybar/config.ini index 015402b..254fa96 100644 --- a/home/vylpes/.config/polybar/config.ini +++ b/home/vylpes/.config/polybar/config.ini @@ -155,7 +155,7 @@ label-connected = %{F#63C5DA}%ifname%%{F-} %local_ip% type = internal/date interval = 1 -date = %H:%M +date = %a %d %b %H:%M date-alt = %Y-%m-%d %H:%M:%S label = %date% From 4fce81eff6e372fb9269ecb40aa059660fb26691 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Thu, 14 Jul 2022 16:26:55 +0100 Subject: [PATCH 17/86] Add shortcut to create a private firefox window --- home/vylpes/.config/i3/config | 1 + 1 file changed, 1 insertion(+) diff --git a/home/vylpes/.config/i3/config b/home/vylpes/.config/i3/config index b57adee..5f951d2 100644 --- a/home/vylpes/.config/i3/config +++ b/home/vylpes/.config/i3/config @@ -52,6 +52,7 @@ floating_modifier $mod # Custom keybinds bindsym $mod+s exec --no-startup-id flameshot gui -p ~/Pictures/captures --clipboard bindsym $mod+f exec --no-startup-id firefox +bindsym $mod+Shift+f exec --no-startup-id firefox --private-window bindsym $mod+Shift+z exec --no-startup-id i3lock-fancy -g -t "System Locked" -f Hack-Regular # ===== From bd6fe43b4a0824f4e03f0db8d51298e6f3ecce14 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 22 Aug 2022 18:16:19 +0100 Subject: [PATCH 18/86] Add audio output controls to polybar --- home/vylpes/.config/i3/config | 3 +++ home/vylpes/.config/polybar/config.ini | 11 ++++++++++- home/vylpes/.scripts/audio/get-sink-name.sh | 11 +++++++++++ home/vylpes/.scripts/dwmblocks/battery.sh | 4 ---- 4 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 home/vylpes/.scripts/audio/get-sink-name.sh delete mode 100644 home/vylpes/.scripts/dwmblocks/battery.sh diff --git a/home/vylpes/.config/i3/config b/home/vylpes/.config/i3/config index 5f951d2..7c2cd43 100644 --- a/home/vylpes/.config/i3/config +++ b/home/vylpes/.config/i3/config @@ -73,6 +73,9 @@ bindsym $mod+Shift+o exec --no-startup-id "passmenu-otp -combi-modi window,drun, # .desktop file. It is a wrapper around dmenu, so you need that installed. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop +bindsym $mod+Shift+F11 exec --no-startup-id "pactl set-default-sink 3 && sh ~/.scripts/audio/get-sink-name.sh > ~/.cache/scripts/get-sink-name.txt" +bindsym $mod+Shift+F12 exec --no-startup-id "pactl set-default-sink 76 && sh ~/.scripts/audio/get-sink-name.sh > ~/.cache/scripts/get-sink-name.txt" + # change focus bindsym $mod+h focus left bindsym $mod+j focus down diff --git a/home/vylpes/.config/polybar/config.ini b/home/vylpes/.config/polybar/config.ini index 254fa96..6f43c95 100644 --- a/home/vylpes/.config/polybar/config.ini +++ b/home/vylpes/.config/polybar/config.ini @@ -52,7 +52,7 @@ font-0 = Hack;2 font-1 = Font Awesome modules-left = xworkspaces xwindow -modules-right = filesystem pulseaudio xkeyboard memory cpu eth date +modules-right = filesystem audiooutput pulseaudio xkeyboard memory cpu eth date cursor-click = pointer cursor-scroll = ns-resize @@ -113,6 +113,15 @@ label-volume = %percentage%% label-muted = muted label-muted-foreground = ${colors.disabled} +[module/audiooutput] +type = custom/script +exec = cat ~/.cache/scripts/get-sink-name.txt +interval = 1 +format =