Compare commits
2 commits
73ecd30e47
...
8137ce7e25
| Author | SHA1 | Date | |
|---|---|---|---|
| 8137ce7e25 | |||
| cff1deb93f |
13 changed files with 71 additions and 105 deletions
|
|
@ -33,7 +33,7 @@ bind = CTRL ALT SHIFT, W, exec, /home/rafayahmad/dotfiles/scripts/startWin11.sh
|
||||||
|
|
||||||
# Window movement
|
# Window movement
|
||||||
bind = SUPER, V, togglefloating,
|
bind = SUPER, V, togglefloating,
|
||||||
bind = SUPER, H, togglesplit, # dwindle
|
bind = SUPER, H, layoutmsg, togglesplit
|
||||||
bind = CTRL, Q, killactive,
|
bind = CTRL, Q, killactive,
|
||||||
bind = ALT, TAB, cyclenext,
|
bind = ALT, TAB, cyclenext,
|
||||||
bind = SUPER, TAB, swapnext,
|
bind = SUPER, TAB, swapnext,
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,10 @@ exec-once = swaync
|
||||||
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||||
exec-once = eww daemon
|
exec-once = eww daemon
|
||||||
|
|
||||||
exec-once = hyprpaper && ~/dotfiles/scripts/currentWallpaperHyprlock.sh
|
exec-once = hyprpaper
|
||||||
exec-once = /home/rafayahmad/dotfiles/scripts/brightnessWidget.sh
|
exec-once = /home/rafayahmad/dotfiles/scripts/brightnessWidget.sh
|
||||||
exec-once = ~/dotfiles/scripts/battWarning.sh
|
exec-once = ~/dotfiles/scripts/battWarning.sh
|
||||||
exec-once = ~/dotfiles/scripts/youtubeBlocker.py
|
exec-once = ~/dotfiles/scripts/youtubeBlocker.sh
|
||||||
|
|
||||||
exec-once = [workspace special:fluffychat silent] GTK_CSD=0 /opt/fluffychat/fluffychat
|
exec-once = [workspace special:fluffychat silent] GTK_CSD=0 /opt/fluffychat/fluffychat
|
||||||
exec-once = [workspace special:thunderbird silent] thunderbird
|
exec-once = [workspace special:thunderbird silent] thunderbird
|
||||||
|
|
@ -142,10 +142,9 @@ misc {
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
# windowrulev2 = nomaximizerequest, class:.* # You'll probably like this.
|
# windowrulev2 = nomaximizerequest, class:.* # You'll probably like this.
|
||||||
|
|
||||||
windowrulev2 = pin, class:(Rofi)
|
windowrule = match:class clipse, float 1
|
||||||
windowrulev2 = float, class:(clipse)
|
windowrule = match:class clipse, size 700 600
|
||||||
windowrulev2 = size 700 600, class:(clipse)
|
windowrule = match:class ^(xdg-desktop-portal-gtk|gtk3-filechooser-dialog)$, float 1
|
||||||
windowrulev2 = float, class:^(xdg-desktop-portal-gtk|gtk3-filechooser-dialog)$
|
windowrule = match:class ^(xdg-desktop-portal-gtk|gtk3-filechooser-dialog)$, size 900 600
|
||||||
windowrulev2 = size 900 600, class:^(xdg-desktop-portal-gtk|gtk3-filechooser-dialog)$
|
windowrule = match:class org.gnome.Calculator, float 1
|
||||||
windowrulev2 = float, class:(org.gnome.Calculator)
|
windowrule = match:class org.gnome.Calculator, size 500 700
|
||||||
windowrulev2 = size 500 700, class:(org.gnome.Calculator)
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
splash = false
|
splash = false
|
||||||
preload = ~/dotfiles/bgs/2.png
|
wallpaper {
|
||||||
preload = ~/dotfiles/bgs/1.png
|
monitor = eDP-1
|
||||||
wallpaper = eDP-1, ~/dotfiles/bgs/1.png
|
path = ~/dotfiles/bgs/
|
||||||
|
fit_mode = cover
|
||||||
|
timeout = 3600
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -2478,6 +2478,8 @@
|
||||||
#: }}}A
|
#: }}}A
|
||||||
font_size 13.0
|
font_size 13.0
|
||||||
|
|
||||||
|
map ctrl+shift+n nop
|
||||||
|
|
||||||
map ctrl+k send_key down
|
map ctrl+k send_key down
|
||||||
map ctrl+i send_key up
|
map ctrl+i send_key up
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,29 @@
|
||||||
{
|
{
|
||||||
"LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" },
|
"LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" },
|
||||||
"auto-session": { "branch": "main", "commit": "292492ab7af4bd8b9e37e28508bc8ce995722fd5" },
|
"auto-session": { "branch": "main", "commit": "62437532b38495551410b3f377bcf4aaac574ebe" },
|
||||||
"blink.cmp": { "branch": "main", "commit": "b19413d214068f316c78978b08264ed1c41830ec" },
|
"blink.cmp": { "branch": "main", "commit": "4b18c32adef2898f95cdef6192cbd5796c1a332d" },
|
||||||
"catppuccin": { "branch": "main", "commit": "ce8d176faa4643e026e597ae3c31db59b63cef09" },
|
"catppuccin": { "branch": "main", "commit": "c4d475e4b5684747cde9b3f849186af7837d4397" },
|
||||||
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
||||||
"fidget.nvim": { "branch": "main", "commit": "64463022a1f2ff1318ab22a2ea4125ed9313a483" },
|
"fidget.nvim": { "branch": "main", "commit": "7fa433a83118a70fe24c1ce88d5f0bd3453c0970" },
|
||||||
"flutter-tools.nvim": { "branch": "main", "commit": "539e84f5a652d96917f0afc1341c20f0d59dd789" },
|
"flutter-tools.nvim": { "branch": "main", "commit": "677cc07c16e8b89999108d2ebeefcfc5f539b73c" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "130beacf8a51f00aede9c31064c749136679a321" },
|
"gitsigns.nvim": { "branch": "main", "commit": "9f3c6dd7868bcc116e9c1c1929ce063b978fa519" },
|
||||||
"harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" },
|
"harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" },
|
||||||
"image.nvim": { "branch": "master", "commit": "c40215d7d7d1d8c823ee9a77be1a894d5c8df41b" },
|
"image.nvim": { "branch": "master", "commit": "c40215d7d7d1d8c823ee9a77be1a894d5c8df41b" },
|
||||||
"jupytext.nvim": { "branch": "main", "commit": "c8baf3ad344c59b3abd461ecc17fc16ec44d0f7b" },
|
"jupytext.nvim": { "branch": "main", "commit": "c8baf3ad344c59b3abd461ecc17fc16ec44d0f7b" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "5231c62aa83c2f8dc8e7ba957aa77098cda1257d" },
|
"lazydev.nvim": { "branch": "main", "commit": "5231c62aa83c2f8dc8e7ba957aa77098cda1257d" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
|
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
|
||||||
"markview.nvim": { "branch": "main", "commit": "18fc148c83925919d94f3fc8e5c74f2d108b9b44" },
|
"markview.nvim": { "branch": "main", "commit": "02824a95a0db2c9fd1bab3adba4510bc8f9c91e4" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "4cfe411526a7a99c18281135e8b4765ae6330d15" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "a324581a3c83fdacdb9804b79de1cbe00ce18550" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "57e5a8addb8c71fb063ee4acda466c7cf6ad2800" },
|
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
|
||||||
"mini.nvim": { "branch": "main", "commit": "a995fe9cd4193fb492b5df69175a351a74b3d36b" },
|
"mini.nvim": { "branch": "main", "commit": "a995fe9cd4193fb492b5df69175a351a74b3d36b" },
|
||||||
"molten-nvim": { "branch": "main", "commit": "a286aa914d9a154bc359131aab788b5a077a5a99" },
|
"molten-nvim": { "branch": "main", "commit": "a286aa914d9a154bc359131aab788b5a077a5a99" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "41ceb6bba3a40128b7841f5b7f5a9dae7201e823" },
|
"nvim-lspconfig": { "branch": "master", "commit": "2b87d107942b9eebef768512f5849330335a9493" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "6788013bb9cb784e606ada44206b0e755e4323d7" },
|
"nvim-web-devicons": { "branch": "master", "commit": "737cf6c657898d0c697311d79d361288a1343d50" },
|
||||||
"otter.nvim": { "branch": "main", "commit": "b36e1a40617e35779d2097fc9b9fd701acd4f5e8" },
|
"otter.nvim": { "branch": "main", "commit": "4796602953348e19fb24916557af7b89e188751f" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
"snacks.nvim": { "branch": "main", "commit": "fe7cfe9800a182274d0f868a74b7263b8c0c020b" },
|
"snacks.nvim": { "branch": "main", "commit": "9912042fc8bca2209105526ac7534e9a0c2071b2" },
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
||||||
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" }
|
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,14 @@ vim.keymap.set('n', '<C-w>', ':bd<CR>', { desc = 'save and close', nowait = true
|
||||||
-- delete word in insert mode
|
-- delete word in insert mode
|
||||||
vim.keymap.set('i', '<C-BS>', '<C-w>', { desc = 'delete word in insert mode' })
|
vim.keymap.set('i', '<C-BS>', '<C-w>', { desc = 'delete word in insert mode' })
|
||||||
|
|
||||||
|
-- kitty in current dir
|
||||||
vim.keymap.set('n', '<leader>t', '<cmd>silent !kitty . &<CR>', { desc = 'open kitty in pwd' })
|
vim.keymap.set('n', '<leader>t', '<cmd>silent !kitty . &<CR>', { desc = 'open kitty in pwd' })
|
||||||
|
|
||||||
|
-- disable default comp
|
||||||
|
vim.keymap.set('i', '<C-n>', '<NOP>', { desc = 'disable default comp' })
|
||||||
|
vim.keymap.set('i', '<C-S-n>', '<NOP>', { desc = 'disable default comp' })
|
||||||
|
|
||||||
-- INFO: Right Dock: Terminal & MiniOilFiles
|
-- INFO: Terminal & MiniOilFiles
|
||||||
|
|
||||||
-- INFO: ctrl m
|
-- INFO: ctrl m
|
||||||
vim.keymap.set('n', '<F27>', '<cmd>Floaterminal<CR>', { desc = 'open terminal', nowait = true })
|
vim.keymap.set('n', '<F27>', '<cmd>Floaterminal<CR>', { desc = 'open terminal', nowait = true })
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ local servers = {
|
||||||
emmet_language_server = {},
|
emmet_language_server = {},
|
||||||
html = { filetypes = { 'html', 'htmldjango' }, },
|
html = { filetypes = { 'html', 'htmldjango' }, },
|
||||||
cssls = {},
|
cssls = {},
|
||||||
vtsls = {},
|
-- vtsls = {},
|
||||||
|
ts_ls = {},
|
||||||
|
|
||||||
prismals = {},
|
prismals = {},
|
||||||
|
|
||||||
|
|
@ -64,8 +65,9 @@ return {
|
||||||
keymap = {
|
keymap = {
|
||||||
preset = 'default',
|
preset = 'default',
|
||||||
|
|
||||||
['<Tab>'] = { 'select_and_accept', 'snippet_forward', 'fallback'},
|
['<Tab>'] = { 'select_and_accept', 'fallback'},
|
||||||
['<S-Tab>'] = { 'snippet_backward', 'fallback'},
|
['<C-n>'] = { 'snippet_forward', 'fallback'},
|
||||||
|
['<C-S-n>'] = { 'snippet_backward', 'fallback'},
|
||||||
['I'] = { 'scroll_documentation_up', 'fallback' },
|
['I'] = { 'scroll_documentation_up', 'fallback' },
|
||||||
['K'] = { 'scroll_documentation_down', 'fallback' },
|
['K'] = { 'scroll_documentation_down', 'fallback' },
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
},
|
},
|
||||||
"model_parameters": []
|
"model_parameters": []
|
||||||
}, */
|
}, */
|
||||||
|
"enable_language_server": false,
|
||||||
"remove_trailing_whitespace_on_save": false,
|
"remove_trailing_whitespace_on_save": false,
|
||||||
"use_on_type_format": false,
|
"use_on_type_format": false,
|
||||||
"git_panel": {
|
"git_panel": {
|
||||||
|
|
@ -38,6 +39,7 @@
|
||||||
},
|
},
|
||||||
"show_edit_predictions": false,
|
"show_edit_predictions": false,
|
||||||
"agent": {
|
"agent": {
|
||||||
|
"always_allow_tool_actions": false,
|
||||||
"default_profile": "write",
|
"default_profile": "write",
|
||||||
"default_model": {
|
"default_model": {
|
||||||
"provider": "copilot_chat",
|
"provider": "copilot_chat",
|
||||||
|
|
|
||||||
BIN
bgs/3.png
BIN
bgs/3.png
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 MiB |
|
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
currentWallpaper=$(hyprctl hyprpaper listactive)
|
# currentWallpaper=$(hyprctl hyprpaper listactive)
|
||||||
currentWallpaper=${currentWallpaper:8}
|
# currentWallpaper=${currentWallpaper:8}
|
||||||
configFile=${currentWallpaper: -5:1}
|
# configFile=${currentWallpaper: -5:1}
|
||||||
configFile="/home/rafayahmad/.config/hypr/hyprlock/${configFile}.conf"
|
# configFile="/home/rafayahmad/.config/hypr/hyprlock/${configFile}.conf"
|
||||||
|
currentWallpaper=/home/rafayahmad/dotfiles/bgs/2.png
|
||||||
export currentWallpaper
|
export currentWallpaper
|
||||||
echo "$configFile"
|
# echo "$configFile"
|
||||||
hyprlock -c "$configFile"
|
hyprlock -c /home/rafayahmad/dotfiles/.config/hypr/hyprlock/2.conf
|
||||||
|
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
from datetime import date
|
|
||||||
from datetime import datetime
|
|
||||||
import socket
|
|
||||||
import os
|
|
||||||
import time
|
|
||||||
from threading import Thread
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
date_format = "%Y-%m-%d"
|
|
||||||
youtube_focused = False
|
|
||||||
|
|
||||||
time_remaining = int(0)
|
|
||||||
|
|
||||||
def update_file():
|
|
||||||
with open('/home/rafayahmad/dotfiles/scripts/youtubeData', 'w') as file:
|
|
||||||
file.write(date.today().strftime(date_format))
|
|
||||||
file.write('\n')
|
|
||||||
file.write(time_remaining.__str__())
|
|
||||||
|
|
||||||
def read_file():
|
|
||||||
global time_remaining
|
|
||||||
with open('/home/rafayahmad/dotfiles/scripts/youtubeData') as file:
|
|
||||||
date_t = file.readline().strip()
|
|
||||||
date_t = datetime.strptime(date_t, date_format).date()
|
|
||||||
time_remaining = int(file.readline())
|
|
||||||
|
|
||||||
if date_t != date.today():
|
|
||||||
print('differnt date, resetting')
|
|
||||||
time_remaining = 60
|
|
||||||
update_file()
|
|
||||||
|
|
||||||
|
|
||||||
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
|
||||||
path = os.path.expandvars('$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock')
|
|
||||||
sock.connect(path)
|
|
||||||
|
|
||||||
def time_counter():
|
|
||||||
while True:
|
|
||||||
global time_remaining
|
|
||||||
if youtube_focused:
|
|
||||||
read_file()
|
|
||||||
if time_remaining == 0:
|
|
||||||
subprocess.run(['hyprctl', 'dispatch', 'killactive'])
|
|
||||||
subprocess.run(['notify-send', 'time\'s up buddy'])
|
|
||||||
time.sleep(1)
|
|
||||||
continue
|
|
||||||
time.sleep(60)
|
|
||||||
time_remaining -= 1
|
|
||||||
update_file()
|
|
||||||
print('Remainng Youtube Time is: ', time_remaining)
|
|
||||||
|
|
||||||
Thread(target=time_counter).start()
|
|
||||||
|
|
||||||
while True:
|
|
||||||
data = sock.recv(1024)
|
|
||||||
lines = data.decode().split('\n')
|
|
||||||
for line in lines:
|
|
||||||
if line.startswith('activewindow>>'):
|
|
||||||
print(line)
|
|
||||||
if line.__contains__('YouTube'):
|
|
||||||
youtube_focused = True
|
|
||||||
print('youtube focused')
|
|
||||||
else:
|
|
||||||
youtube_focused = False
|
|
||||||
print('youtube unfocused')
|
|
||||||
22
scripts/youtubeBlocker.sh
Executable file
22
scripts/youtubeBlocker.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
is_valid_youtube_time() {
|
||||||
|
now=$(date +%H%M)
|
||||||
|
start=1000
|
||||||
|
end=1800
|
||||||
|
|
||||||
|
(( 10#$now >= start && 10#$now <= end ))
|
||||||
|
}
|
||||||
|
|
||||||
|
handle() {
|
||||||
|
case $1 in
|
||||||
|
activewindow*)
|
||||||
|
echo $1
|
||||||
|
if [[ $1 == *YouTube* ]] && ! is_valid_youtube_time; then
|
||||||
|
hyprctl dispatch killactive
|
||||||
|
notify-send "ENOUGH, LOCK IN"
|
||||||
|
fi
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
socat -U - UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read -r line; do handle "$line"; done
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
2025-12-07
|
|
||||||
59
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue